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 e698110976371ed942f4a315689fd74f62ec1e6f Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sat Apr 12 08:19:03 2025 -0400 Use Comparator.comparing() --- src/main/java/org/apache/commons/jxpath/JXPathBasicBeanInfo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/jxpath/JXPathBasicBeanInfo.java b/src/main/java/org/apache/commons/jxpath/JXPathBasicBeanInfo.java index 1af399d..4fc375c 100644 --- a/src/main/java/org/apache/commons/jxpath/JXPathBasicBeanInfo.java +++ b/src/main/java/org/apache/commons/jxpath/JXPathBasicBeanInfo.java @@ -35,7 +35,7 @@ import java.util.HashMap; public class JXPathBasicBeanInfo implements JXPathBeanInfo { private static final long serialVersionUID = -3863803443111484155L; - private static final Comparator<PropertyDescriptor> PROPERTY_DESCRIPTOR_COMPARATOR = (left, right) -> left.getName().compareTo(right.getName()); + private static final Comparator<PropertyDescriptor> PROPERTY_DESCRIPTOR_COMPARATOR = Comparator.comparing(PropertyDescriptor::getName); /** * Whether objects of this class are treated as atomic objects which have no properties of their own. */