mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 20:07:01 +07:00
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
30 lines
879 B
Java
30 lines
879 B
Java
// "Add constructor parameter" "true"
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
// IDEA-345876
|
|
abstract class Test {
|
|
private final String taskName;
|
|
|
|
private final String config;
|
|
|
|
private final String moduleName;
|
|
|
|
public Test(String config, String taskName, String taskLocation, String moduleName) {
|
|
this(config, taskName, taskLocation, Collections.emptyList(), moduleName);
|
|
}
|
|
|
|
public Test(String config, String taskLocation,
|
|
List<String> additionalArguments, String moduleName) {
|
|
this(config, null, taskLocation, additionalArguments, moduleName);
|
|
}
|
|
|
|
public Test(String config, String taskName, String taskLocation,
|
|
List<String> additionalArguments, String moduleName) {
|
|
this.config = config;
|
|
this.taskName = taskName;
|
|
this.moduleName = moduleName;
|
|
System.out.println(additionalArguments);
|
|
}
|
|
}
|