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:
nik
2018-09-03 17:10:51 +03:00
parent 2f25c412a5
commit b2c82f1865
2 changed files with 1 additions and 7 deletions

View File

@@ -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() {

View File

@@ -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;
}