mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
Java: Prevent introducing parameter that contains subexpression replaced by another parameter (IDEA-180801)
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
class C {
|
||||
public void foo(C c, long d, int i, String s) {
|
||||
<selection>b(s, 1).m(d, i())</selection>;
|
||||
b(s, i).m(d, k(d));
|
||||
c.m(d, i);
|
||||
}
|
||||
|
||||
private C b(String s, int i) { return new C(); }
|
||||
void m(long d, int i) { }
|
||||
|
||||
private int i() { return 0; }
|
||||
private int k(long d) { return 0; }
|
||||
}
|
||||
Reference in New Issue
Block a user