Remove ClassLoaderUtils.construct() 09/80609/2
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Feb 2019 12:37:21 +0000 (13:37 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 26 Feb 2019 14:23:25 +0000 (15:23 +0100)
This is a useless utility method, which is not used anywhere,
remove it.

Change-Id: Ia3c5cc2a6f61de86bb1b5ebe8f834b4c947a2ad7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/util/src/main/java/org/opendaylight/yangtools/util/ClassLoaderUtils.java

index 232a54ded9c8804e42a106d26fe3246025f674c1..37dd54dc23e9fda09b992d045c1f0165f9db1660 100644 (file)
@@ -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 <T>?
-    public static Object construct(final Constructor<?> constructor, final List<Object> objects)
-            throws InstantiationException, IllegalAccessException, InvocationTargetException {
-        final Object[] initargs = objects.toArray();
-        return constructor.newInstance(initargs);
-    }
-
     /**
      * Loads class using this supplied classloader.
      *