mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
move operator assignment check for object to javac quirks inspection with fix (IDEA-154209)
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ public class a {
|
||||
ia[~i | (i+=(!b?2:i))] -= i + 3.3;
|
||||
|
||||
// Object += String
|
||||
<error descr="Operator '+' cannot be applied to 'java.lang.Object', 'java.lang.String'">o += o + "string"</error>;
|
||||
o += o + "string";
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
class Test {
|
||||
{
|
||||
Object o = "";
|
||||
<warning descr="Operator '+' cannot be applied to 'java.lang.Object', 'java.lang.String'">o += ""</warning>;
|
||||
System.out.println(o);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user