[java] static modifier of created method should depend on containing class (IDEA-203737)

This commit is contained in:
Daniil Ovchinnikov
2018-12-11 23:03:15 +03:00
parent e110fd2ee7
commit 0ebd593531
4 changed files with 45 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
// "Create method 'doSomething' in 'Test'" "true"
public class Test {
public static void main(String[] args) {
blaat(new Runnable() {
public void run() {
doSomething();
}
});
}
private static void doSomething() {
<caret>
}
public static void blaat(Runnable o) {}
}

View File

@@ -0,0 +1,12 @@
// "Create method 'doSomething' in 'Test'" "true"
public class Test {
public static void main(String[] args) {
blaat(new Runnable() {
public void run() {
<caret>doSomething();
}
});
}
public static void blaat(Runnable o) {}
}