mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
fix operation assignment (IDEA-143986)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Remove redundant assignment" "true"
|
||||
class A {
|
||||
public String getContexts(final String env) {
|
||||
String contexts = "a";
|
||||
if ("dev".equals(env)) {
|
||||
return contexts + ",b";
|
||||
}
|
||||
return contexts;
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Remove redundant assignment" "true"
|
||||
class A {
|
||||
public String getContexts(final String env) {
|
||||
String contexts = "a";
|
||||
if ("dev".equals(env)) {
|
||||
return cont<caret>exts += ",b";
|
||||
}
|
||||
return contexts;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user