mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Inline inner: assignments to local vars and params in constructor body fixed (IDEA-39285)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
public class WithCtor {
|
||||
private int myInt = 8;
|
||||
private String myString = "Sashya";
|
||||
|
||||
public WithCtor() {
|
||||
}
|
||||
|
||||
public WithCtor(int anInt, String string) {
|
||||
int i = 2;
|
||||
i = 3;
|
||||
myInt = i + anInt;
|
||||
int j = 4;
|
||||
j = 5;
|
||||
myString = string.substring(j);
|
||||
}
|
||||
}
|
||||
|
||||
class Usage {
|
||||
private WithCtor wc1 = new With<caret>Ctor(17, "Sa");
|
||||
}
|
||||
Reference in New Issue
Block a user