field can't be local if its initializer is not a constant

This commit is contained in:
anna
2010-03-22 18:55:52 +03:00
parent 16e05359a3
commit 2f8092591a
4 changed files with 20 additions and 1 deletions
@@ -28,4 +28,5 @@ public class FieldCanBeLocalTest extends InspectionTestCase {
public void testLocalVar2InnerClass() throws Exception { doTest(); }
public void testStateField() throws Exception { doTest(); }
public void testLocalStateVar2InnerClass() throws Exception { doTest(); }
public void testNotConstantInitializer() throws Exception {doTest();}
}