We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b083cce commit 3510221Copy full SHA for 3510221
src/main/java/org/openrewrite/java/spring/ImplicitWebAnnotationNames.java
@@ -94,6 +94,7 @@ private Optional<J.Literal> nameArgumentValue(J.Annotation annotation) {
94
.filter(assign -> assign.getVariable().whenType(J.Ident.class)
95
.map(key -> key.getSimpleName().equals("value") || key.getSimpleName().equals("name"))
96
.orElse(false))
97
+ .filter(assign -> assign.getAssignment() instanceof J.Literal)
98
.map(assign -> (J.Literal) assign.getAssignment())
99
.isPresent() || arg.whenType(J.Literal.class).isPresent())
100
.findAny()
0 commit comments