mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
search for default annotation method (IDEA-70739)
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
package pack1;
|
||||
|
||||
public @interface A {
|
||||
int intValue();
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package pack1;
|
||||
|
||||
class Usage {
|
||||
@A(intValue = 11)
|
||||
void foo() {
|
||||
}
|
||||
|
||||
@A(intValue = 42)
|
||||
void bar() {
|
||||
}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
package pack1;
|
||||
|
||||
public @interface A {
|
||||
int value();
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
package pack1;
|
||||
|
||||
class Usage {
|
||||
@A(11)
|
||||
void foo() {
|
||||
}
|
||||
|
||||
@A(value = 42)
|
||||
void bar() {
|
||||
}
|
||||
}
|
||||
@@ -40,6 +40,10 @@ public class RenameMethodMultiTest extends MultiFileTestCase {
|
||||
doTest("pack1.A", "void staticMethod(int i)", "renamedStaticMethod");
|
||||
}
|
||||
|
||||
public void testDefaultAnnotationMethod() throws Exception {
|
||||
doTest("pack1.A", "int value()", "intValue");
|
||||
}
|
||||
|
||||
public void testRename2OverrideFinal() throws Exception {
|
||||
try {
|
||||
doTest("p.B", "void method()", "finalMethod");
|
||||
|
||||
Reference in New Issue
Block a user