commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1199798 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderMutateInspectConcurrencyTest.java
Date Wed, 09 Nov 2011 15:32:12 GMT
Author: ggregory
Date: Wed Nov  9 15:32:12 2011
New Revision: 1199798

URL: http://svn.apache.org/viewvc?rev=1199798&view=rev
Log:
Use Java 5 LinkedList API, not Java 6. Note that removeFirstOccurrence(Object) delegates to
remove(Object) in Java 6.

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderMutateInspectConcurrencyTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderMutateInspectConcurrencyTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderMutateInspectConcurrencyTest.java?rev=1199798&r1=1199797&r2=1199798&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderMutateInspectConcurrencyTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ReflectionToStringBuilderMutateInspectConcurrencyTest.java
Wed Nov  9 15:32:12 2011
@@ -55,7 +55,7 @@ public class ReflectionToStringBuilderMu
         }
 
         public synchronized void delete() {
-            listField.removeFirstOccurrence(Integer.valueOf(random.nextInt(N)));
+            listField.remove(Integer.valueOf(random.nextInt(N)));
         }
     }
 



Mime
View raw message