mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
suggest to replace with constant reference rather than its value
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ class Test {
|
||||
public static final String CONST = "foo bar";
|
||||
private void test() {
|
||||
String s = CONST;
|
||||
System.out.println(<caret><warning descr="Value 's' is always 'foo bar'">s</warning>);
|
||||
System.out.println(<caret><warning descr="Value 's' is always 'CONST'">s</warning>);
|
||||
}
|
||||
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@ class Test {
|
||||
public static final String CONST = "foo bar";
|
||||
private void test() {
|
||||
String s = CONST;
|
||||
System.out.println("foo bar");
|
||||
System.out.println(CONST);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user