From 54a531c45a4ed723ab3406f6fff6ae119726d4a8 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Tue, 26 Feb 2019 13:37:21 +0100 Subject: [PATCH] Remove ClassLoaderUtils.construct() This is a useless utility method, which is not used anywhere, remove it. Change-Id: Ia3c5cc2a6f61de86bb1b5ebe8f834b4c947a2ad7 Signed-off-by: Robert Varga --- .../opendaylight/yangtools/util/ClassLoaderUtils.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/common/util/src/main/java/org/opendaylight/yangtools/util/ClassLoaderUtils.java b/common/util/src/main/java/org/opendaylight/yangtools/util/ClassLoaderUtils.java index 232a54ded9..37dd54dc23 100644 --- a/common/util/src/main/java/org/opendaylight/yangtools/util/ClassLoaderUtils.java +++ b/common/util/src/main/java/org/opendaylight/yangtools/util/ClassLoaderUtils.java @@ -13,8 +13,6 @@ import com.google.common.annotations.Beta; import com.google.common.base.Joiner; import com.google.common.base.Splitter; import com.google.common.collect.Iterables; -import java.lang.reflect.Constructor; -import java.lang.reflect.InvocationTargetException; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.List; @@ -162,13 +160,6 @@ public final class ClassLoaderUtils { return callWithClassLoader(cls, function); } - // FIXME: 3.0.0: Remove or improve this to be an explicit cast to a receiver ? - public static Object construct(final Constructor constructor, final List objects) - throws InstantiationException, IllegalAccessException, InvocationTargetException { - final Object[] initargs = objects.toArray(); - return constructor.newInstance(initargs); - } - /** * Loads class using this supplied classloader. * -- 2.36.6