allow to replace strings with non-final static 'constants' (IDEA-119480)

This commit is contained in:
Anna Kozlova
2014-04-10 14:03:05 +02:00
parent 69f8d95193
commit 52951cfbfe
4 changed files with 59 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
// "Replace with 'A.RADIUS'" "true"
class A {
public static String RADIUS = "radius";
public void myMethod(String propertyName) {
if (RADIUS.equals(propertyName)) {
}
}
}

View File

@@ -0,0 +1,10 @@
// "Replace with 'A.RADIUS'" "true"
class A {
public static String RADIUS = "radius";
public void myMethod(String propertyName) {
if ("rad<caret>ius".equals(propertyName)) {
}
}
}