You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2017/05/17 15:04:14 UTC

[30/50] [lang] HashSetvBitSetTest: use diamond operator (closes #264)

HashSetvBitSetTest: use diamond operator (closes #264)

Use Java 7's diamond operator to make the code a tad more elegant, as
done in the rest of the codebase.


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/c8e648b9
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/c8e648b9
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/c8e648b9

Branch: refs/heads/release
Commit: c8e648b92cc133a604b5e1f4da1ced943788e64b
Parents: d61090a
Author: Allon Mureinik <am...@redhat.com>
Authored: Sat Apr 29 10:37:40 2017 +0300
Committer: pascalschumacher <pa...@gmx.net>
Committed: Sat Apr 29 10:48:41 2017 +0200

----------------------------------------------------------------------
 src/test/java/org/apache/commons/lang3/HashSetvBitSetTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/c8e648b9/src/test/java/org/apache/commons/lang3/HashSetvBitSetTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/HashSetvBitSetTest.java b/src/test/java/org/apache/commons/lang3/HashSetvBitSetTest.java
index cafb298..97fe714 100644
--- a/src/test/java/org/apache/commons/lang3/HashSetvBitSetTest.java
+++ b/src/test/java/org/apache/commons/lang3/HashSetvBitSetTest.java
@@ -39,7 +39,7 @@ public class HashSetvBitSetTest {
 
     @Benchmark
     public int[] testHashSet() {
-        final HashSet<Integer> toRemove = new HashSet<Integer>();
+        final HashSet<Integer> toRemove = new HashSet<>();
         int found = 0;
         for (int i = 0; i < numberOfElementsToCompute; i++) {
             toRemove.add(found++);