pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1867391 - /pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/util/QuickSort.java
Date Mon, 23 Sep 2019 18:38:55 GMT
Author: tilman
Date: Mon Sep 23 18:38:55 2019
New Revision: 1867391

URL: http://svn.apache.org/viewvc?rev=1867391&view=rev
Log:
PDFBOX-4071: use jdk8 expressions

Modified:
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/util/QuickSort.java

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/util/QuickSort.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/util/QuickSort.java?rev=1867391&r1=1867390&r2=1867391&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/util/QuickSort.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/util/QuickSort.java Mon
Sep 23 18:38:55 2019
@@ -34,14 +34,7 @@ public final class QuickSort
     {
     }
     
-    private static final Comparator<? extends Comparable> OBJCOMP = new Comparator<Comparable>()
-    {
-        @Override
-        public int compare(Comparable object1, Comparable object2)
-        {
-            return object1.compareTo(object2);
-        }
-    };
+    private static final Comparator<? extends Comparable> OBJCOMP = Comparable::compareTo;
 
     /**
      * Sorts the given list using the given comparator.



Mime
View raw message