Skip to content

Commit

Permalink
QuartzSchedulingGenerator config only fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GoodforGod committed Aug 1, 2023
1 parent 08b5f6c commit 71935fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void generate(TypeElement type, ExecutableElement method, TypeSpec.Builde
b.addStatement("var value = config.get($S)", configPath);
b.addCode("if (value instanceof $T.NullValue) {\n return new $T($S);\n}\n", CommonClassNames.configValue, configClassName, cron);
} else {
b.addStatement("var value = config.get($S)");
b.addStatement("var value = config.get($S)", configPath);
}
b.beginControlFlow("if (value instanceof $T.StringValue str)", CommonClassNames.configValue)
.addStatement("var cron = str.value();")
Expand Down

0 comments on commit 71935fa

Please sign in to comment.