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-beanutils.git


The following commit(s) were added to refs/heads/master by this push:
     new 7060eeac Use diamonds
7060eeac is described below

commit 7060eeac6a43d0dd99ce0f2f4f82f0525c38ff93
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Thu Aug 24 10:52:30 2023 -0400

    Use diamonds
---
 src/main/java/org/apache/commons/beanutils2/MethodUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/beanutils2/MethodUtils.java 
b/src/main/java/org/apache/commons/beanutils2/MethodUtils.java
index 86116949..03f84b4b 100644
--- a/src/main/java/org/apache/commons/beanutils2/MethodUtils.java
+++ b/src/main/java/org/apache/commons/beanutils2/MethodUtils.java
@@ -159,7 +159,7 @@ public class MethodUtils {
      * objects and hence end up with different entries in the map.
      */
     private static final Map<MethodDescriptor, Reference<Method>> cache = 
Collections
-            .synchronizedMap(new WeakHashMap<MethodDescriptor, 
Reference<Method>>());
+            .synchronizedMap(new WeakHashMap<>());
 
     /**
      * Add a method to the cache.

Reply via email to