Skip to content

Commit

Permalink
refactor: Enum values should be compared with "=="
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek and TeamModerne committed Dec 24, 2024
1 parent e2610d7 commit 2cc5599
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private static class ConfigPropertiesToConfigMappingVisitor extends JavaIsoVisit
public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, ExecutionContext ctx) {
J.ClassDeclaration cd = super.visitClassDeclaration(classDecl, ctx);
if (cd.getLeadingAnnotations().stream().anyMatch(CONFIG_PROPERTIES_ANNOTATION_MATCHER::matches) &&
cd.getKind().equals(J.ClassDeclaration.Kind.Type.Interface)) {
cd.getKind() == J.ClassDeclaration.Kind.Type.Interface) {
doAfterVisit(new ChangeType("io.quarkus.arc.config.ConfigProperties", "io.smallrye.config.ConfigMapping", true).getVisitor());
}
return cd;
Expand Down

0 comments on commit 2cc5599

Please sign in to comment.