Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 44584 invoked from network); 10 Aug 2010 11:45:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Aug 2010 11:45:23 -0000 Received: (qmail 89371 invoked by uid 500); 10 Aug 2010 11:45:22 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 88895 invoked by uid 500); 10 Aug 2010 11:45:20 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 88887 invoked by uid 99); 10 Aug 2010 11:45:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Aug 2010 11:45:19 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qw0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Aug 2010 11:45:10 +0000 Received: by qwd6 with SMTP id 6so8033524qwd.30 for ; Tue, 10 Aug 2010 04:44:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=pDT87jvSbcx3wAHptCF2sS7sgP1wzlTCZJ8eoMlGwzs=; b=klFIqKsWmhULdVDHNblM35v+/5WOF08uzoH8ODilIujkm3k0NDNLwQungxoWQo/g5+ Neem9xkCibOPU6Gu+Wg4Rce9DeuKFDSt1nEqOyVZ6tJNeNFDpZ2+buRtEVQGWV6QER9g fvF4oxQo/qnAuijxqq+4bDov+GNbFzVYrII5I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=KgFRS5tfL5IPWWEmlZPjuK3iJoi6ihkk4o5xeU+ormWEKfynHquafeVtBeoNgMIbGS dHhgmdH9RQTz4x5yuUQ6hkOkxejntiRXLmBjw53jTmThZiuARVQY2QH3AmRsJmHGNAKO Xoo4gIbVfzHY3xeKvi+R1/hFeueBTm0K/qkzw= MIME-Version: 1.0 Received: by 10.220.175.196 with SMTP id bb4mr3224150vcb.1.1281440685528; Tue, 10 Aug 2010 04:44:45 -0700 (PDT) Received: by 10.220.161.81 with HTTP; Tue, 10 Aug 2010 04:44:45 -0700 (PDT) In-Reply-To: <20100810113138.D4AC623889E7@eris.apache.org> References: <20100810113138.D4AC623889E7@eris.apache.org> Date: Tue, 10 Aug 2010 12:44:45 +0100 Message-ID: Subject: Re: svn commit: r983933 - in /commons/proper/lang/trunk/src: main/java/org/apache/commons/lang3/ArrayUtils.java test/java/org/apache/commons/lang3/ArrayUtilsTest.java From: sebb To: dev@commons.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 10 August 2010 12:31, wrote: > Author: jcarman > Date: Tue Aug 10 11:31:38 2010 > New Revision: 983933 > > URL: http://svn.apache.org/viewvc?rev=3D983933&view=3Drev > Log: > Reverting "generification" of toMap() method in ArrayUtils. However, the changes to ArrayUtilsTest seem to have reverted other fixes as well - was that intentional? > Modified: > =A0 =A0commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/A= rrayUtils.java > =A0 =A0commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/A= rrayUtilsTest.java > > Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang= 3/ArrayUtils.java > URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java= /org/apache/commons/lang3/ArrayUtils.java?rev=3D983933&r1=3D983932&r2=3D983= 933&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Arra= yUtils.java (original) > +++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/Arra= yUtils.java Tue Aug 10 11:31:38 2010 > @@ -222,17 +222,16 @@ public class ArrayUtils { > =A0 =A0 =A0* @throws IllegalArgumentException =A0if the array contains el= ements other > =A0 =A0 =A0* =A0than {@link java.util.Map.Entry} and an Array > =A0 =A0 =A0*/ > - =A0 =A0@SuppressWarnings("unchecked") > - =A0 =A0public static Map toMap(Object[] array) { > + =A0 =A0public static Map toMap(Object[] array) { > =A0 =A0 =A0 =A0 if (array =3D=3D null) { > =A0 =A0 =A0 =A0 =A0 =A0 return null; > =A0 =A0 =A0 =A0 } > - =A0 =A0 =A0 =A0final Map map =3D new HashMap((int) (array.l= ength * 1.5)); > + =A0 =A0 =A0 =A0final Map map =3D new HashMap((int) (array.length * 1.5)); > =A0 =A0 =A0 =A0 for (int i =3D 0; i < array.length; i++) { > =A0 =A0 =A0 =A0 =A0 =A0 Object object =3D array[i]; > =A0 =A0 =A0 =A0 =A0 =A0 if (object instanceof Map.Entry) { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Map.Entry entry =3D (Map.Entry)= object; > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0map.put((K)entry.getKey(), (V)entry.getV= alue()); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0map.put(entry.getKey(), entry.getValue()= ); > =A0 =A0 =A0 =A0 =A0 =A0 } else if (object instanceof Object[]) { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Object[] entry =3D (Object[]) object; > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (entry.length < 2) { > @@ -240,7 +239,7 @@ public class ArrayUtils { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 + object > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 + "', has a length less t= han 2"); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 } > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0map.put((K)entry[0], (V)entry[1]); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0map.put(entry[0], entry[1]); > =A0 =A0 =A0 =A0 =A0 =A0 } else { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 throw new IllegalArgumentException("Array= element " + i + ", '" > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 + object > > Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang= 3/ArrayUtilsTest.java > URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java= /org/apache/commons/lang3/ArrayUtilsTest.java?rev=3D983933&r1=3D983932&r2= =3D983933&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/Arra= yUtilsTest.java (original) > +++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/Arra= yUtilsTest.java Tue Aug 10 11:31:38 2010 > @@ -159,10 +159,10 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0*/ > =A0 =A0 public void testArrayCreationWithDifferentTypes() > =A0 =A0 { > - =A0 =A0 =A0 =A0final Number[] array =3D ArrayUtils.toArray(42, = Math.PI); > + =A0 =A0 =A0 =A0final Number[] array =3D ArrayUtils.toArray(Inte= ger.valueOf(42), Double.valueOf(Math.PI)); > =A0 =A0 =A0 =A0 assertEquals(2, array.length); > - =A0 =A0 =A0 =A0assertEquals(42, array[0]); > - =A0 =A0 =A0 =A0assertEquals(Math.PI, array[1]); > + =A0 =A0 =A0 =A0assertEquals(Integer.valueOf(42), array[0]); > + =A0 =A0 =A0 =A0assertEquals(Double.valueOf(Math.PI), array[1]); > =A0 =A0 } > > =A0 =A0 /** > @@ -201,7 +201,7 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 //---------------------------------------------------------------= -------- > =A0 =A0 public void testToMap() { > - =A0 =A0 =A0 =A0Map map =3D ArrayUtils.toMap(new String[]= [] {{"foo", "bar"}, {"hello", "world"}}); > + =A0 =A0 =A0 =A0Map map =3D ArrayUtils.toMap(new String[][] {{"foo= ", "bar"}, {"hello", "world"}}); > > =A0 =A0 =A0 =A0 assertEquals("bar", map.get("foo")); > =A0 =A0 =A0 =A0 assertEquals("world", map.get("hello")); > @@ -2005,10 +2005,10 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 array =3D new double[0]; > =A0 =A0 =A0 =A0 assertEquals(-1, ArrayUtils.indexOf(array, (double) 0, (d= ouble) 0)); > =A0 =A0 =A0 =A0 array =3D new double[] { 0, 1, 2, 3, 0 }; > - =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.indexOf(array, (double) 0, 0.= 3)); > - =A0 =A0 =A0 =A0assertEquals(2, ArrayUtils.indexOf(array, 2.2, 0.35)); > - =A0 =A0 =A0 =A0assertEquals(3, ArrayUtils.indexOf(array, 4.15, 2.0)); > - =A0 =A0 =A0 =A0assertEquals(1, ArrayUtils.indexOf(array, 1.00001324, 0.= 0001)); > + =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.indexOf(array, (double) 0, (d= ouble) 0.3)); > + =A0 =A0 =A0 =A0assertEquals(2, ArrayUtils.indexOf(array, (double) 2.2, = (double) 0.35)); > + =A0 =A0 =A0 =A0assertEquals(3, ArrayUtils.indexOf(array, (double) 4.15,= (double) 2.0)); > + =A0 =A0 =A0 =A0assertEquals(1, ArrayUtils.indexOf(array, (double) 1.000= 01324, (double) 0.0001)); > =A0 =A0 } > > =A0 =A0 @SuppressWarnings("cast") > @@ -2033,14 +2033,14 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 array =3D new double[0]; > =A0 =A0 =A0 =A0 assertEquals(-1, ArrayUtils.indexOf(array, (double) 0, 2,= (double) 0)); > =A0 =A0 =A0 =A0 array =3D new double[] { 0, 1, 2, 3, 0 }; > - =A0 =A0 =A0 =A0assertEquals(-1, ArrayUtils.indexOf(array, (double) 0, 9= 9, 0.3)); > - =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.indexOf(array, (double) 0, 0,= 0.3)); > - =A0 =A0 =A0 =A0assertEquals(4, ArrayUtils.indexOf(array, (double) 0, 3,= 0.3)); > - =A0 =A0 =A0 =A0assertEquals(2, ArrayUtils.indexOf(array, 2.2, 0, 0.35))= ; > - =A0 =A0 =A0 =A0assertEquals(3, ArrayUtils.indexOf(array, 4.15, 0, 2.0))= ; > - =A0 =A0 =A0 =A0assertEquals(1, ArrayUtils.indexOf(array, 1.00001324, 0,= 0.0001)); > - =A0 =A0 =A0 =A0assertEquals(3, ArrayUtils.indexOf(array, 4.15, -1, 2.0)= ); > - =A0 =A0 =A0 =A0assertEquals(1, ArrayUtils.indexOf(array, 1.00001324, -3= 00, 0.0001)); > + =A0 =A0 =A0 =A0assertEquals(-1, ArrayUtils.indexOf(array, (double) 0, 9= 9, (double) 0.3)); > + =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.indexOf(array, (double) 0, 0,= (double) 0.3)); > + =A0 =A0 =A0 =A0assertEquals(4, ArrayUtils.indexOf(array, (double) 0, 3,= (double) 0.3)); > + =A0 =A0 =A0 =A0assertEquals(2, ArrayUtils.indexOf(array, (double) 2.2, = 0, (double) 0.35)); > + =A0 =A0 =A0 =A0assertEquals(3, ArrayUtils.indexOf(array, (double) 4.15,= 0, (double) 2.0)); > + =A0 =A0 =A0 =A0assertEquals(1, ArrayUtils.indexOf(array, (double) 1.000= 01324, 0, (double) 0.0001)); > + =A0 =A0 =A0 =A0assertEquals(3, ArrayUtils.indexOf(array, (double) 4.15,= -1, (double) 2.0)); > + =A0 =A0 =A0 =A0assertEquals(1, ArrayUtils.indexOf(array, (double) 1.000= 01324, -300, (double) 0.0001)); > =A0 =A0 } > > =A0 =A0 @SuppressWarnings("cast") > @@ -2064,10 +2064,10 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 array =3D new double[0]; > =A0 =A0 =A0 =A0 assertEquals(-1, ArrayUtils.lastIndexOf(array, (double) 0= , (double) 0)); > =A0 =A0 =A0 =A0 array =3D new double[] { 0, 1, 2, 3, 0 }; > - =A0 =A0 =A0 =A0assertEquals(4, ArrayUtils.lastIndexOf(array, (double) 0= , 0.3)); > - =A0 =A0 =A0 =A0assertEquals(2, ArrayUtils.lastIndexOf(array, 2.2, 0.35)= ); > - =A0 =A0 =A0 =A0assertEquals(3, ArrayUtils.lastIndexOf(array, 4.15, 2.0)= ); > - =A0 =A0 =A0 =A0assertEquals(1, ArrayUtils.lastIndexOf(array, 1.00001324= , 0.0001)); > + =A0 =A0 =A0 =A0assertEquals(4, ArrayUtils.lastIndexOf(array, (double) 0= , (double) 0.3)); > + =A0 =A0 =A0 =A0assertEquals(2, ArrayUtils.lastIndexOf(array, (double) 2= .2, (double) 0.35)); > + =A0 =A0 =A0 =A0assertEquals(3, ArrayUtils.lastIndexOf(array, (double) 4= .15, (double) 2.0)); > + =A0 =A0 =A0 =A0assertEquals(1, ArrayUtils.lastIndexOf(array, (double) 1= .00001324, (double) 0.0001)); > =A0 =A0 } > > =A0 =A0 @SuppressWarnings("cast") > @@ -2095,12 +2095,12 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 array =3D new double[] { (double) 3 }; > =A0 =A0 =A0 =A0 assertEquals(-1, ArrayUtils.lastIndexOf(array, (double) 1= , 0, (double) 0)); > =A0 =A0 =A0 =A0 array =3D new double[] { 0, 1, 2, 3, 0 }; > - =A0 =A0 =A0 =A0assertEquals(4, ArrayUtils.lastIndexOf(array, (double) 0= , 99, 0.3)); > - =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.lastIndexOf(array, (double) 0= , 3, 0.3)); > - =A0 =A0 =A0 =A0assertEquals(2, ArrayUtils.lastIndexOf(array, 2.2, 3, 0.= 35)); > - =A0 =A0 =A0 =A0assertEquals(3, ArrayUtils.lastIndexOf(array, 4.15, arra= y.length, 2.0)); > - =A0 =A0 =A0 =A0assertEquals(1, ArrayUtils.lastIndexOf(array, 1.00001324= , array.length, 0.0001)); > - =A0 =A0 =A0 =A0assertEquals(-1, ArrayUtils.lastIndexOf(array, 4.15, -20= 0, 2.0)); > + =A0 =A0 =A0 =A0assertEquals(4, ArrayUtils.lastIndexOf(array, (double) 0= , 99, (double) 0.3)); > + =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.lastIndexOf(array, (double) 0= , 3, (double) 0.3)); > + =A0 =A0 =A0 =A0assertEquals(2, ArrayUtils.lastIndexOf(array, (double) 2= .2, 3, (double) 0.35)); > + =A0 =A0 =A0 =A0assertEquals(3, ArrayUtils.lastIndexOf(array, (double) 4= .15, array.length, (double) 2.0)); > + =A0 =A0 =A0 =A0assertEquals(1, ArrayUtils.lastIndexOf(array, (double) 1= .00001324, array.length, (double) 0.0001)); > + =A0 =A0 =A0 =A0assertEquals(-1, ArrayUtils.lastIndexOf(array, (double) = 4.15, -200, (double) 2.0)); > =A0 =A0 } > > =A0 =A0 @SuppressWarnings("cast") > @@ -2120,10 +2120,10 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 double[] array =3D null; > =A0 =A0 =A0 =A0 assertEquals(false, ArrayUtils.contains(array, (double) 1= , (double) 0)); > =A0 =A0 =A0 =A0 array =3D new double[] { 0, 1, 2, 3, 0 }; > - =A0 =A0 =A0 =A0assertEquals(false, ArrayUtils.contains(array, 4.0, 0.33= )); > - =A0 =A0 =A0 =A0assertEquals(false, ArrayUtils.contains(array, 2.5, 0.49= )); > - =A0 =A0 =A0 =A0assertEquals(true, ArrayUtils.contains(array, 2.5, 0.50)= ); > - =A0 =A0 =A0 =A0assertEquals(true, ArrayUtils.contains(array, 2.5, 0.51)= ); > + =A0 =A0 =A0 =A0assertEquals(false, ArrayUtils.contains(array, (double) = 4.0, (double) 0.33)); > + =A0 =A0 =A0 =A0assertEquals(false, ArrayUtils.contains(array, (double) = 2.5, (double) 0.49)); > + =A0 =A0 =A0 =A0assertEquals(true, ArrayUtils.contains(array, (double) 2= .5, (double) 0.50)); > + =A0 =A0 =A0 =A0assertEquals(true, ArrayUtils.contains(array, (double) 2= .5, (double) 0.51)); > =A0 =A0 } > > =A0 =A0 //---------------------------------------------------------------= -------- > @@ -2319,12 +2319,12 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 new char[] {Character.MIN_VALUE, Character.MAX_VA= LUE, '0'}, > - =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Character[] {Characte= r.MIN_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Character.MAX_VALUE, '0'})) > + =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Character[] {new Char= acter(Character.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Character(Character.MAX_VALUE), new = Character('0')})) > =A0 =A0 =A0 =A0 ); > > =A0 =A0 =A0 =A0 try { > - =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Character[] {Characte= r.MIN_VALUE, null}); > + =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Character[] {new Char= acter(Character.MIN_VALUE), null}); > =A0 =A0 =A0 =A0 =A0 =A0 fail(); > =A0 =A0 =A0 =A0 } catch (NullPointerException ex) {} > =A0 =A0 } > @@ -2338,15 +2338,15 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 new char[] {Character.MIN_VALUE, Character.MAX_VA= LUE, '0'}, > - =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Character[] {Characte= r.MIN_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Character.MAX_VALUE, '0'}, > + =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Character[] {new Char= acter(Character.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Character(Character.MAX_VALUE), new = Character('0')}, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Character.MIN_VALUE)) > =A0 =A0 =A0 =A0 ); > > =A0 =A0 =A0 =A0 assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 new char[] {Character.MIN_VALUE, Character.MAX_VA= LUE, '0'}, > - =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Character[] {Characte= r.MIN_VALUE, null, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0'0'}, Character.MAX_VALUE)) > + =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Character[] {new Char= acter(Character.MIN_VALUE), null, > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Character('0')}, Character.MAX_VALUE= )) > =A0 =A0 =A0 =A0 ); > =A0 =A0 } > > @@ -2358,8 +2358,8 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toObject(new char[0])); > > =A0 =A0 =A0 =A0 assertTrue(Arrays.equals( > - =A0 =A0 =A0 =A0 =A0 =A0new Character[] {Character.MIN_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Character.MAX_VALUE, '0'}, > + =A0 =A0 =A0 =A0 =A0 =A0new Character[] {new Character(Character.MIN_VAL= UE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Character(Character.MAX_VALUE), new = Character('0')}, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toObject(new char[] {Character= .MIN_VALUE, Character.MAX_VALUE, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 '0'} )) > =A0 =A0 =A0 =A0 ); > @@ -2375,12 +2375,12 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 new byte[] {Byte.MIN_VALUE, Byte.MAX_VALUE, (byte= )9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Byte[] {Byte.MIN_VALU= E, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Byte.MAX_VALUE, (byte) 9999999})= ) > + =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Byte[] {Byte.valueOf(= Byte.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Byte.valueOf(Byte.MAX_VALUE), Byte.value= Of((byte)9999999)})) > =A0 =A0 =A0 =A0 ); > > =A0 =A0 =A0 =A0 try { > - =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Byte[] {Byte.MIN_VALU= E, null}); > + =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Byte[] {Byte.valueOf(= Byte.MIN_VALUE), null}); > =A0 =A0 =A0 =A0 =A0 =A0 fail(); > =A0 =A0 =A0 =A0 } catch (NullPointerException ex) {} > =A0 =A0 } > @@ -2394,15 +2394,15 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 new byte[] {Byte.MIN_VALUE, Byte.MAX_VALUE, (byte= )9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Byte[] {Byte.MIN_VALU= E, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Byte.MAX_VALUE, (byte) 9999999}, > + =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Byte[] {Byte.valueOf(= Byte.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Byte.valueOf(Byte.MAX_VALUE), Byte.value= Of((byte)9999999)}, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Byte.MIN_VALUE)) > =A0 =A0 =A0 =A0 ); > > =A0 =A0 =A0 =A0 assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 new byte[] {Byte.MIN_VALUE, Byte.MAX_VALUE, (byte= )9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Byte[] {Byte.MIN_VALU= E, null, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(byte) 9999999}, Byte.MAX_VALUE)= ) > + =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Byte[] {Byte.valueOf(= Byte.MIN_VALUE), null, > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Byte.valueOf((byte)9999999)}, Byte.MAX_V= ALUE)) > =A0 =A0 =A0 =A0 ); > =A0 =A0 } > > @@ -2414,8 +2414,8 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toObject(new byte[0])); > > =A0 =A0 =A0 =A0 assertTrue(Arrays.equals( > - =A0 =A0 =A0 =A0 =A0 =A0new Byte[] {Byte.MIN_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Byte.MAX_VALUE, (byte) 9999999}, > + =A0 =A0 =A0 =A0 =A0 =A0new Byte[] {Byte.valueOf(Byte.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Byte.valueOf(Byte.MAX_VALUE), Byte.value= Of((byte)9999999)}, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toObject(new byte[] {Byte.MIN_= VALUE, Byte.MAX_VALUE, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (byte)9999999})) > =A0 =A0 =A0 =A0 ); > @@ -2431,12 +2431,12 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 new short[] {Short.MIN_VALUE, Short.MAX_VALUE, (s= hort)9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Short[] {Short.MIN_VA= LUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Short.MAX_VALUE, (short) 9999999= })) > + =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Short[] {new Short(Sh= ort.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Short(Short.MAX_VALUE), new Short((s= hort)9999999)})) > =A0 =A0 =A0 =A0 ); > > =A0 =A0 =A0 =A0 try { > - =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Short[] {Short.MIN_VA= LUE, null}); > + =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Short[] {new Short(Sh= ort.MIN_VALUE), null}); > =A0 =A0 =A0 =A0 =A0 =A0 fail(); > =A0 =A0 =A0 =A0 } catch (NullPointerException ex) {} > =A0 =A0 } > @@ -2450,14 +2450,14 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 new short[] {Short.MIN_VALUE, Short.MAX_VALUE, (s= hort)9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Short[] {Short.MIN_VA= LUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Short.MAX_VALUE, (short) 9999999= }, Short.MIN_VALUE)) > + =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Short[] {new Short(Sh= ort.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Short(Short.MAX_VALUE), new Short((s= hort)9999999)}, Short.MIN_VALUE)) > =A0 =A0 =A0 =A0 ); > > =A0 =A0 =A0 =A0 assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 new short[] {Short.MIN_VALUE, Short.MAX_VALUE, (s= hort)9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Short[] {Short.MIN_VA= LUE, null, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(short) 9999999}, Short.MAX_VALU= E)) > + =A0 =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Short[] {new Short(Sh= ort.MIN_VALUE), null, > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Short((short)9999999)}, Short.MAX_VA= LUE)) > =A0 =A0 =A0 =A0 ); > =A0 =A0 } > > @@ -2469,8 +2469,8 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 ArrayUtils.toObject(new short[0])); > > =A0 =A0 =A0 =A0 assertTrue(Arrays.equals( > - =A0 =A0 =A0 =A0 =A0 =A0new Short[] {Short.MIN_VALUE, Short.MAX_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(short) 9999999}, > + =A0 =A0 =A0 =A0 =A0 =A0new Short[] {new Short(Short.MIN_VALUE), new Sho= rt(Short.MAX_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Short((short)9999999)}, > =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toObject(new short[] {Short.MIN_VALUE,= Short.MAX_VALUE, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (short)9999999})) > =A0 =A0 =A0 =A0 ); > @@ -2484,12 +2484,12 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 =A0assertSame(ArrayUtils.EMPTY_INT_ARRAY, ArrayUtils.toPr= imitive(new Integer[0])); > =A0 =A0 =A0 =A0 =A0assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0new int[] {Integer.MIN_VALUE, Integer.MAX_VALU= E, 9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Integer[] {Integer.M= IN_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Integer.MAX_VALUE, 9999999})) > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Integer[] {new Integ= er(Integer.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new Integer(Integer.MAX_VALUE), new Int= eger(9999999)})) > =A0 =A0 =A0 =A0 =A0); > > =A0 =A0 =A0 =A0 =A0try { > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Integer[] {Integer.M= IN_VALUE, null}); > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Integer[] {new Integ= er(Integer.MIN_VALUE), null}); > =A0 =A0 =A0 =A0 =A0 =A0 =A0fail(); > =A0 =A0 =A0 =A0 =A0} catch (NullPointerException ex) {} > =A0 =A0 =A0} > @@ -2501,12 +2501,12 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 =A0ArrayUtils.toPrimitive(new Integer[0], 1)); > =A0 =A0 =A0 =A0 =A0assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0new int[] {Integer.MIN_VALUE, Integer.MAX_VALU= E, 9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Integer[] {Integer.M= IN_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Integer.MAX_VALUE, 9999999},1))= ); > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Integer[] {new Integ= er(Integer.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new Integer(Integer.MAX_VALUE), new Int= eger(9999999)},1))); > =A0 =A0 =A0 =A0 =A0assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0new int[] {Integer.MIN_VALUE, Integer.MAX_VALU= E, 9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Integer[] {Integer.M= IN_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 null, 9999999}, Integer.MAX_VALUE)) > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Integer[] {new Integ= er(Integer.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 null, new Integer(9999999)}, Integer.MA= X_VALUE)) > =A0 =A0 =A0 =A0 =A0); > =A0 =A0 =A0} > > @@ -2526,9 +2526,9 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 assertTrue( > =A0 =A0 =A0 =A0 =A0 =A0 Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new Integer[] { > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Integer.MIN_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Integer.MAX_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A09999999}, > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Integer(Integer.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Integer(Integer.MAX_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Integer(9999999)}, > =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toObject( > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new int[] { Integer.MIN_VALUE, Integer.MA= X_VALUE, 9999999 }))); > =A0 =A0 } > @@ -2544,12 +2544,12 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 =A0assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0new long[] {Long.MIN_VALUE, Long.MAX_VALUE, 99= 99999}, > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Long[] {Long.MIN_VAL= UE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Long.MAX_VALUE, (long) 9999999}= )) > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Long[] {new Long(Lon= g.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new Long(Long.MAX_VALUE), new Long(9999= 999)})) > =A0 =A0 =A0 =A0 =A0); > > =A0 =A0 =A0 =A0 =A0try { > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Long[] {Long.MIN_VAL= UE, null}); > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Long[] {new Long(Lon= g.MIN_VALUE), null}); > =A0 =A0 =A0 =A0 =A0 =A0 =A0fail(); > =A0 =A0 =A0 =A0 =A0} catch (NullPointerException ex) {} > =A0 =A0 =A0} > @@ -2563,13 +2563,13 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 =A0assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0new long[] {Long.MIN_VALUE, Long.MAX_VALUE, 99= 99999}, > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Long[] {Long.MIN_VAL= UE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Long.MAX_VALUE, (long) 9999999}= ,1))); > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Long[] {new Long(Lon= g.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new Long(Long.MAX_VALUE), new Long(9999= 999)},1))); > > =A0 =A0 =A0 =A0 =A0assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0new long[] {Long.MIN_VALUE, Long.MAX_VALUE, 99= 99999}, > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Long[] {Long.MIN_VAL= UE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 null, (long) 9999999}, Long.MAX_VALUE)) > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Long[] {new Long(Lon= g.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 null, new Long(9999999)}, Long.MAX_VALU= E)) > =A0 =A0 =A0 =A0 =A0); > =A0 =A0 =A0} > > @@ -2584,9 +2584,9 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 assertTrue( > =A0 =A0 =A0 =A0 =A0 =A0 Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new Long[] { > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Long.MIN_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Long.MAX_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(long) 9999999}, > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Long(Long.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Long(Long.MAX_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Long(9999999)}, > =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toObject( > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new long[] { Long.MIN_VALUE, Long.MAX_VAL= UE, 9999999 }))); > =A0 =A0 } > @@ -2602,12 +2602,12 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 =A0assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0new float[] {Float.MIN_VALUE, Float.MAX_VALUE,= 9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Float[] {Float.MIN_V= ALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Float.MAX_VALUE, (float) 999999= 9})) > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Float[] {new Float(F= loat.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new Float(Float.MAX_VALUE), new Float(9= 999999)})) > =A0 =A0 =A0 =A0 =A0); > > =A0 =A0 =A0 =A0 =A0try { > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Float[] {Float.MIN_V= ALUE, null}); > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Float[] {new Float(F= loat.MIN_VALUE), null}); > =A0 =A0 =A0 =A0 =A0 =A0 =A0fail(); > =A0 =A0 =A0 =A0 =A0} catch (NullPointerException ex) {} > =A0 =A0 =A0} > @@ -2621,13 +2621,13 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 =A0assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0new float[] {Float.MIN_VALUE, Float.MAX_VALUE,= 9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Float[] {Float.MIN_V= ALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Float.MAX_VALUE, (float) 999999= 9},1))); > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Float[] {new Float(F= loat.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new Float(Float.MAX_VALUE), new Float(9= 999999)},1))); > > =A0 =A0 =A0 =A0 =A0assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0new float[] {Float.MIN_VALUE, Float.MAX_VALUE,= 9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Float[] {Float.MIN_V= ALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 null, (float) 9999999}, Float.MAX_VALUE= )) > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Float[] {new Float(F= loat.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 null, new Float(9999999)}, Float.MAX_VA= LUE)) > =A0 =A0 =A0 =A0 =A0); > =A0 =A0 =A0} > > @@ -2642,9 +2642,9 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 assertTrue( > =A0 =A0 =A0 =A0 =A0 =A0 Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new Float[] { > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Float.MIN_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Float.MAX_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(float) 9999999}, > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Float(Float.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Float(Float.MAX_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Float(9999999)}, > =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toObject( > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new float[] { Float.MIN_VALUE, Float.MAX_= VALUE, 9999999 }))); > =A0 =A0 } > @@ -2660,12 +2660,12 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 =A0assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0new double[] {Double.MIN_VALUE, Double.MAX_VAL= UE, 9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Double[] {Double.MIN= _VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Double.MAX_VALUE, (double) 9999= 999})) > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Double[] {new Double= (Double.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new Double(Double.MAX_VALUE), new Doubl= e(9999999)})) > =A0 =A0 =A0 =A0 =A0); > > =A0 =A0 =A0 =A0 =A0try { > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Float[] {Float.MIN_V= ALUE, null}); > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Float[] {new Float(F= loat.MIN_VALUE), null}); > =A0 =A0 =A0 =A0 =A0 =A0 =A0fail(); > =A0 =A0 =A0 =A0 =A0} catch (NullPointerException ex) {} > =A0 =A0 =A0} > @@ -2679,13 +2679,13 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 =A0assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0new double[] {Double.MIN_VALUE, Double.MAX_VAL= UE, 9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Double[] {Double.MIN= _VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Double.MAX_VALUE, (double) 9999= 999},1))); > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Double[] {new Double= (Double.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new Double(Double.MAX_VALUE), new Doubl= e(9999999)},1))); > > =A0 =A0 =A0 =A0 =A0assertTrue(Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0new double[] {Double.MIN_VALUE, Double.MAX_VAL= UE, 9999999}, > - =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Double[] {Double.MIN= _VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 null, (double) 9999999}, Double.MAX_VAL= UE)) > + =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toPrimitive(new Double[] {new Double= (Double.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 null, new Double(9999999)}, Double.MAX_= VALUE)) > =A0 =A0 =A0 =A0 =A0); > =A0 =A0 =A0} > > @@ -2700,9 +2700,9 @@ public class ArrayUtilsTest extends Test > =A0 =A0 =A0 =A0 assertTrue( > =A0 =A0 =A0 =A0 =A0 =A0 Arrays.equals( > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new Double[] { > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Double.MIN_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Double.MAX_VALUE, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(double) 9999999}, > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Double(Double.MIN_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Double(Double.MAX_VALUE), > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new Double(9999999)}, > =A0 =A0 =A0 =A0 =A0 =A0 ArrayUtils.toObject( > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 new double[] { Double.MIN_VALUE, Double.M= AX_VALUE, 9999999 }))); > =A0 =A0 } > @@ -2855,49 +2855,49 @@ public class ArrayUtilsTest extends Test > > =A0 =A0 =A0 =A0 Object[] emptyObjectArray =3D new Object[0]; > =A0 =A0 =A0 =A0 Object[] notEmptyObjectArray =3D new Object[] {"aValue"}; > - =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength(null)); > + =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength((Object[]) null)); > =A0 =A0 =A0 =A0 assertEquals(0, ArrayUtils.getLength(emptyObjectArray)); > =A0 =A0 =A0 =A0 assertEquals(1, ArrayUtils.getLength(notEmptyObjectArray)= ); > > =A0 =A0 =A0 =A0 int[] emptyIntArray =3D new int[] {}; > =A0 =A0 =A0 =A0 int[] notEmptyIntArray =3D new int[] { 1 }; > - =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength(null)); > + =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength((int[]) null)); > =A0 =A0 =A0 =A0 assertEquals(0, ArrayUtils.getLength(emptyIntArray)); > =A0 =A0 =A0 =A0 assertEquals(1, ArrayUtils.getLength(notEmptyIntArray)); > > =A0 =A0 =A0 =A0 short[] emptyShortArray =3D new short[] {}; > =A0 =A0 =A0 =A0 short[] notEmptyShortArray =3D new short[] { 1 }; > - =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength(null)); > + =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength((short[]) null)); > =A0 =A0 =A0 =A0 assertEquals(0, ArrayUtils.getLength(emptyShortArray)); > =A0 =A0 =A0 =A0 assertEquals(1, ArrayUtils.getLength(notEmptyShortArray))= ; > > =A0 =A0 =A0 =A0 char[] emptyCharArray =3D new char[] {}; > =A0 =A0 =A0 =A0 char[] notEmptyCharArray =3D new char[] { 1 }; > - =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength(null)); > + =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength((char[]) null)); > =A0 =A0 =A0 =A0 assertEquals(0, ArrayUtils.getLength(emptyCharArray)); > =A0 =A0 =A0 =A0 assertEquals(1, ArrayUtils.getLength(notEmptyCharArray)); > > =A0 =A0 =A0 =A0 byte[] emptyByteArray =3D new byte[] {}; > =A0 =A0 =A0 =A0 byte[] notEmptyByteArray =3D new byte[] { 1 }; > - =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength(null)); > + =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength((byte[]) null)); > =A0 =A0 =A0 =A0 assertEquals(0, ArrayUtils.getLength(emptyByteArray)); > =A0 =A0 =A0 =A0 assertEquals(1, ArrayUtils.getLength(notEmptyByteArray)); > > =A0 =A0 =A0 =A0 double[] emptyDoubleArray =3D new double[] {}; > =A0 =A0 =A0 =A0 double[] notEmptyDoubleArray =3D new double[] { 1.0 }; > - =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength(null)); > + =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength((double[]) null)); > =A0 =A0 =A0 =A0 assertEquals(0, ArrayUtils.getLength(emptyDoubleArray)); > =A0 =A0 =A0 =A0 assertEquals(1, ArrayUtils.getLength(notEmptyDoubleArray)= ); > > =A0 =A0 =A0 =A0 float[] emptyFloatArray =3D new float[] {}; > =A0 =A0 =A0 =A0 float[] notEmptyFloatArray =3D new float[] { 1.0F }; > - =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength(null)); > + =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength((float[]) null)); > =A0 =A0 =A0 =A0 assertEquals(0, ArrayUtils.getLength(emptyFloatArray)); > =A0 =A0 =A0 =A0 assertEquals(1, ArrayUtils.getLength(notEmptyFloatArray))= ; > > =A0 =A0 =A0 =A0 boolean[] emptyBooleanArray =3D new boolean[] {}; > =A0 =A0 =A0 =A0 boolean[] notEmptyBooleanArray =3D new boolean[] { true }= ; > - =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength(null)); > + =A0 =A0 =A0 =A0assertEquals(0, ArrayUtils.getLength((boolean[]) null)); > =A0 =A0 =A0 =A0 assertEquals(0, ArrayUtils.getLength(emptyBooleanArray)); > =A0 =A0 =A0 =A0 assertEquals(1, ArrayUtils.getLength(notEmptyBooleanArray= )); > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org