pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1867414 - in /pdfbox/branches/issue4569: debugger/src/main/java/org/apache/pdfbox/debugger/ui/ErrorDialog.java debugger/src/main/java/org/apache/pdfbox/debugger/ui/Tree.java pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java
Date Tue, 24 Sep 2019 04:11:27 GMT
Author: tilman
Date: Tue Sep 24 04:11:27 2019
New Revision: 1867414

URL: http://svn.apache.org/viewvc?rev=1867414&view=rev
Log:
PDFBOX-4071: replace lambda with method reference

Modified:
    pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/ui/ErrorDialog.java
    pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/ui/Tree.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java

Modified: pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/ui/ErrorDialog.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/ui/ErrorDialog.java?rev=1867414&r1=1867413&r2=1867414&view=diff
==============================================================================
--- pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/ui/ErrorDialog.java
(original)
+++ pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/ui/ErrorDialog.java
Tue Sep 24 04:11:27 2019
@@ -276,6 +276,6 @@ public class ErrorDialog extends JDialog
      */
     private boolean isSuppressed(String className)
     {
-        return FILTERS.stream().anyMatch(s -> className.startsWith(s));
+        return FILTERS.stream().anyMatch(className::startsWith);
     }
 }

Modified: pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/ui/Tree.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/ui/Tree.java?rev=1867414&r1=1867413&r2=1867414&view=diff
==============================================================================
--- pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/ui/Tree.java
(original)
+++ pdfbox/branches/issue4569/debugger/src/main/java/org/apache/pdfbox/debugger/ui/Tree.java
Tue Sep 24 04:11:27 2019
@@ -116,7 +116,7 @@ public class Tree extends JTree
         {
             if (stream.getFilters() instanceof COSArray && ((COSArray) stream.getFilters()).size()
>= 2)
             {
-                getPartiallyDecodedStreamSaveMenu(stream).forEach(menuItem -> treePopupMenu.add(menuItem));
+                getPartiallyDecodedStreamSaveMenu(stream).forEach(treePopupMenu::add);
             }
             treePopupMenu.add(getRawStreamSaveMenu(stream));
         }

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java?rev=1867414&r1=1867413&r2=1867414&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java (original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPage.java Tue
Sep 24 04:11:27 2019
@@ -514,7 +514,7 @@ public class PDPage implements COSObject
     public void setContents(List<PDStream> contents)
     {
         COSArray array = new COSArray();
-        contents.forEach(stream -> array.add(stream));
+        contents.forEach(array::add);
         page.setItem(COSName.CONTENTS, array);
     }
 
@@ -764,7 +764,7 @@ public class PDPage implements COSObject
             return;
         }
         COSArray array = new COSArray();
-        viewports.forEach(viewport -> array.add(viewport));
+        viewports.forEach(array::add);
         page.setItem(COSName.VP, array);
     }
 



Mime
View raw message