Files
Tagir Valeev 2d3ed0f730 [java-intentions] CreateConstructorParameterFromFieldFix: fill variables before modifying constructors
When chain target constructor is already updated, it affected other constructors from the same chain
Fixes IDEA-345876 Unable to add constructor parameter via quick-fix

GitOrigin-RevId: e13d1d24ad16dbd32281b7f13be6d656871acef2
2024-06-05 15:08:25 +00:00

15 lines
295 B
Java

// "Add constructor parameter" "true"
public class SimpleClass { // IDEA-333847
final boolean b;
final String s;
public SimpleClass(boolean b, String s) {
this.b = b;
this.s = s;
}
public SimpleClass(int i, boolean b, String s) {
this.b = b;
this.s = s;
}
}