This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-jcs.git
commit af2e43bc3967b89e72d3550985fd299d1aaed009 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Jul 9 19:34:30 2024 -0400 Use diamonds Remove useless parens --- .../org/apache/commons/jcs/yajcache/util/CollectionUtils.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commons-jcs3-sandbox/commons-jcs3-yajcache/src/main/java/org/apache/commons/jcs/yajcache/util/CollectionUtils.java b/commons-jcs3-sandbox/commons-jcs3-yajcache/src/main/java/org/apache/commons/jcs/yajcache/util/CollectionUtils.java index 2f1e6a44..7a673d80 100644 --- a/commons-jcs3-sandbox/commons-jcs3-yajcache/src/main/java/org/apache/commons/jcs/yajcache/util/CollectionUtils.java +++ b/commons-jcs3-sandbox/commons-jcs3-yajcache/src/main/java/org/apache/commons/jcs/yajcache/util/CollectionUtils.java @@ -34,15 +34,15 @@ public enum CollectionUtils { // http://www.artima.com/forums/flat.jsp?forum=106&thread=79394 public <K,V> ConcurrentHashMap<K,V> newConcurrentHashMap() { - return new ConcurrentHashMap<K,V>(); + return new ConcurrentHashMap<>(); } - public <K,V> ConcurrentHashMap<K,V> newConcurrentHashMap(int initialCapacity) + public <K,V> ConcurrentHashMap<K,V> newConcurrentHashMap(final int initialCapacity) { - return new ConcurrentHashMap<K,V>(initialCapacity); + return new ConcurrentHashMap<>(initialCapacity); } public <K,V> ConcurrentHashMap<K,V> newConcurrentHashMap( - int initialCapacity, float loadFactor, int concurrencyLevel) + final int initialCapacity, final float loadFactor, final int concurrencyLevel) { - return new ConcurrentHashMap<K,V>(initialCapacity); + return new ConcurrentHashMap<>(initialCapacity); } }