Skip to content

Commit 8a16285

Browse files
committed
Support @InlineMe annotations from any package
1 parent ad9e735 commit 8a16285

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/openrewrite/java/migrate/InlineMethodCalls.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
public class InlineMethodCalls extends Recipe {
4141

42-
private static final String INLINE_ME = "com.google.errorprone.annotations.InlineMe";
42+
private static final String INLINE_ME = "InlineMe";
4343

4444
@Override
4545
public String getDisplayName() {
@@ -110,7 +110,7 @@ public J visitNewClass(J.NewClass newClass, ExecutionContext ctx) {
110110

111111
List<JavaType.FullyQualified> annotations = methodType.getAnnotations();
112112
for (JavaType.FullyQualified annotation : annotations) {
113-
if (INLINE_ME.equals(annotation.getFullyQualifiedName())) {
113+
if (INLINE_ME.equals(annotation.getClassName())) {
114114
return InlineMeValues.parse((JavaType.Annotation) annotation);
115115
}
116116
}

0 commit comments

Comments
 (0)