formatter: field groups alignment: correctly process range (IDEA-98368; IDEA-98367)

This commit is contained in:
anna
2013-01-03 19:39:41 +01:00
parent e9a2759eed
commit 9a683bbc4a
4 changed files with 60 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
// "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;
}
}

View File

@@ -0,0 +1,22 @@
// "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 getString(String key)
{
return getString(key, "");
}
public static String getString(String key, String defaultValue)
{
return null;
}
}
class B {
{
String s = A.fi<caret>eld;
}
}