mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
push down: interface constants in class should appear with public-static-final (IDEA-123758)
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
interface SimpleDialogPresenter {
|
||||
int BUT<caret>TON_POSITIVE = 1;
|
||||
int BUTTON_NEGATIVE = 2;
|
||||
int BUTTON_NEUTRAL = 3;
|
||||
}
|
||||
|
||||
class SimpleDialogPresenterImpl implements SimpleDialogPresenter {}
|
||||
@@ -0,0 +1,8 @@
|
||||
interface SimpleDialogPresenter {
|
||||
int BUTTON_NEGATIVE = 2;
|
||||
int BUTTON_NEUTRAL = 3;
|
||||
}
|
||||
|
||||
class SimpleDialogPresenterImpl implements SimpleDialogPresenter {
|
||||
public static final int BUTTON_POSITIVE = 1;
|
||||
}
|
||||
@@ -60,6 +60,8 @@ public class PushDownTest extends LightRefactoringTestCase {
|
||||
public void testFunctionalInterface() { doTest(true);}
|
||||
public void testFunctionalExpressionDefaultMethod() { doTest();}
|
||||
|
||||
public void testInterfaceConstants() { doTest();}
|
||||
|
||||
private void doTest() {
|
||||
doTest(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user