introduce constant: create subclass when it is not possible to place the constant inside the class (IDEA-86965)

This commit is contained in:
Anna Kozlova
2012-06-04 18:14:44 +04:00
parent 6bbbb5031f
commit 201978075d
6 changed files with 70 additions and 21 deletions
@@ -0,0 +1,6 @@
enum TestEnum {
ONE("te<caret>stString");
TestEnum(String str) {
}
}
@@ -0,0 +1,10 @@
enum TestEnum {
ONE(Constants.xxx);
TestEnum(String str) {
}
private class Constants {
public static final String xxx = "testString";
}
}