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-jxpath.git
commit 93de2ca9c40af9fa8baee69ab192f5533630f4ce Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Thu Mar 20 10:36:44 2025 -0400 JXPathBasicBeanInfo.PROPERTY_DESCRIPTOR_COMPARATOR now uses generics --- src/main/java/org/apache/commons/jxpath/JXPathBasicBeanInfo.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/jxpath/JXPathBasicBeanInfo.java b/src/main/java/org/apache/commons/jxpath/JXPathBasicBeanInfo.java index 0a18dcc..1af399d 100644 --- a/src/main/java/org/apache/commons/jxpath/JXPathBasicBeanInfo.java +++ b/src/main/java/org/apache/commons/jxpath/JXPathBasicBeanInfo.java @@ -35,9 +35,7 @@ import java.util.HashMap; public class JXPathBasicBeanInfo implements JXPathBeanInfo { private static final long serialVersionUID = -3863803443111484155L; - private static final Comparator PROPERTY_DESCRIPTOR_COMPARATOR = (left, right) -> ((PropertyDescriptor) left).getName() - .compareTo(((PropertyDescriptor) right).getName()); - + private static final Comparator<PropertyDescriptor> PROPERTY_DESCRIPTOR_COMPARATOR = (left, right) -> left.getName().compareTo(right.getName()); /** * Whether objects of this class are treated as atomic objects which have no properties of their own. */