mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
allow to replace strings with non-final static 'constants' (IDEA-119480)
This commit is contained in:
@@ -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)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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)) {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user