Repository: commons-lang Updated Branches: refs/heads/master d61090ab6 -> c8e648b92
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/master Commit: c8e648b92cc133a604b5e1f4da1ced943788e64b Parents: d61090a Author: Allon Mureinik <amure...@redhat.com> Authored: Sat Apr 29 10:37:40 2017 +0300 Committer: pascalschumacher <pascalschumac...@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++);