Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createFieldFromUsage/afterWithAlignment.java
Yaroslav Lepenkin 28a13b77d1 Do not skip blocks outside of formatting range, when building block wrappers. Blocks with alignments will be built and in some cases aligned properly.
Removed FieldInColumnsPreFormatProcessor, because now using CodeStyleManager#reformatWithContext we can reformat not only selected fragment, but also all blocks with alignments found there. (Also it fixes IDEA-99343)

Corrected test data
2015-06-23 17:22:25 +03:00

24 lines
472 B
Java

// "Create field 'field'" "true"
class A {
public static final String NOTIFICATION_ENABLED = "NOTIFICATION_ENABLED";
public static final String NOTIFICATION_DEVICE_NAME = "NOTIFICATION_DEVICE_NAME";
public static String field;
public static String getString(String key)
{
return getString(key, "");
}
public static String getString(String key, String defaultValue)
{
return null;
}
}
class B {
{
String s = A.field;
}
}