mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 18:09:38 +07:00
[java] static modifier of created method should depend on containing class (IDEA-203737)
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
@@ -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) {}
|
||||
}
|
||||
Reference in New Issue
Block a user