mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
fix annotation matching in duplicates finder
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
class C {
|
||||
{
|
||||
@A int i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
|
||||
void f() {
|
||||
<selection>@B int j = 0;
|
||||
System.out.println(j);</selection>
|
||||
}
|
||||
}
|
||||
@interface A {}
|
||||
@interface B {}
|
||||
@@ -0,0 +1,17 @@
|
||||
class C {
|
||||
{
|
||||
@A int i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
|
||||
void f() {
|
||||
newMethod();
|
||||
}
|
||||
|
||||
private void newMethod() {
|
||||
@B int j = 0;
|
||||
System.out.println(j);
|
||||
}
|
||||
}
|
||||
@interface A {}
|
||||
@interface B {}
|
||||
@@ -0,0 +1,19 @@
|
||||
class C {
|
||||
{
|
||||
@A(value="asdf") int i = 0;
|
||||
System.out.println(i);
|
||||
}
|
||||
|
||||
void f() {
|
||||
<selection>@A int j = 0;
|
||||
System.out.println(j);</selection>
|
||||
}
|
||||
|
||||
void g() {
|
||||
@A("asdf") int k = 0;
|
||||
System.out.println(k);
|
||||
}
|
||||
}
|
||||
@interface A {
|
||||
String value() default "asdf";
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
class C {
|
||||
{
|
||||
newMethod();
|
||||
}
|
||||
|
||||
void f() {
|
||||
newMethod();
|
||||
}
|
||||
|
||||
private void newMethod() {
|
||||
@A int j = 0;
|
||||
System.out.println(j);
|
||||
}
|
||||
|
||||
void g() {
|
||||
newMethod();
|
||||
}
|
||||
}
|
||||
@interface A {
|
||||
String value() default "asdf";
|
||||
}
|
||||
Reference in New Issue
Block a user