mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
cleanup: get rid of 'ContainerUtilRt.ar' method
Name of the method is rather obscure and it doesn't make code much shorter (IDEA-CR-35888).
This commit is contained in:
@@ -25,12 +25,6 @@ import java.util.concurrent.CopyOnWriteArrayList;
|
||||
public class ContainerUtilRt {
|
||||
private static final int ARRAY_COPY_THRESHOLD = 20;
|
||||
|
||||
@NotNull
|
||||
@Contract(pure=true)
|
||||
public static <T> T[] ar(@NotNull T... elements) {
|
||||
return elements;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Contract(value = " -> new", pure = true)
|
||||
public static <K, V> HashMap<K, V> newHashMap() {
|
||||
|
||||
@@ -43,7 +43,7 @@ public class CustomMaven3ModelInterpolator extends StringSearchModelInterpolator
|
||||
@Override
|
||||
public Model interpolate(Model model, File projectDir, ProjectBuilderConfiguration config, boolean debugEnabled)
|
||||
throws ModelInterpolationException {
|
||||
this.interpolateObject(ContainerUtilRt.ar(model.getParent(), model), model, projectDir, config, debugEnabled);
|
||||
this.interpolateObject(new Object[]{model.getParent(), model}, model, projectDir, config, debugEnabled);
|
||||
return model;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user