mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
detect duplicates: ignore returns from inner classes/lambdas (IDEA-91087)
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
class Test10 {
|
||||
void test() {
|
||||
<selection>new Object() {
|
||||
int get() {
|
||||
return 0;
|
||||
}
|
||||
};</selection>
|
||||
|
||||
new Object() {
|
||||
int get() {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
class Test10 {
|
||||
void test() {
|
||||
newMethod();
|
||||
|
||||
newMethod();
|
||||
}
|
||||
|
||||
private void newMethod() {
|
||||
new Object() {
|
||||
int get() {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user