From 47eebc5d865d09b448803c26ac28d6527f2f4803 Mon Sep 17 00:00:00 2001 From: fernando Date: Sun, 20 Mar 2016 15:33:34 -0700 Subject: [PATCH] HHH-12037 - Remove unused code in ArrayHelper --- .../util/collections/ArrayHelper.java | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/internal/util/collections/ArrayHelper.java b/hibernate-core/src/main/java/org/hibernate/internal/util/collections/ArrayHelper.java index bd6abf56fb..627581fcc5 100644 --- a/hibernate-core/src/main/java/org/hibernate/internal/util/collections/ArrayHelper.java +++ b/hibernate-core/src/main/java/org/hibernate/internal/util/collections/ArrayHelper.java @@ -8,11 +8,7 @@ package org.hibernate.internal.util.collections; import java.io.Serializable; import java.lang.reflect.Array; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; +import java.util.*; import org.hibernate.HibernateException; import org.hibernate.LockMode; @@ -33,12 +29,6 @@ public final class ArrayHelper { } return -1; } - - /*public static Object[] clone(Class elementClass, Object[] array) { - Object[] result = (Object[]) Array.newInstance( elementClass, array.length ); - System.arraycopy(array, 0, result, 0, array.length); - return result; - }*/ public static String[] toStringArray(Object[] objects) { int length = objects.length; @@ -227,14 +217,6 @@ public final class ArrayHelper { return result; } - /*public static int countFalse(boolean[] array) { - int result=0; - for ( int i=0; i