mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
remove unused assignment: do not move the transformed statement up as it could change the semantic and is not evident (IDEA-123841)
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
// "Remove redundant assignment" "true"
|
||||
class A {
|
||||
A a = null;
|
||||
String m(String str) {
|
||||
return str;
|
||||
}
|
||||
|
||||
{
|
||||
String ss = "";
|
||||
|
||||
System.out.println();
|
||||
|
||||
a.m(ss);
|
||||
}
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
// "Remove redundant assignment" "true"
|
||||
class A {
|
||||
A a = null;
|
||||
String m(String str) {
|
||||
return str;
|
||||
}
|
||||
|
||||
{
|
||||
String ss = "";
|
||||
|
||||
System.out.println();
|
||||
|
||||
s<caret>s = a.m(ss);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user