pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1781429 - /pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/ui/RecentFiles.java
Date Thu, 02 Feb 2017 16:33:09 GMT
Author: tilman
Date: Thu Feb  2 16:33:09 2017
New Revision: 1781429

URL: http://svn.apache.org/viewvc?rev=1781429&view=rev
Log:
PDFBOX-2852: use isEmpty()

Modified:
    pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/ui/RecentFiles.java

Modified: pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/ui/RecentFiles.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/ui/RecentFiles.java?rev=1781429&r1=1781428&r2=1781429&view=diff
==============================================================================
--- pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/ui/RecentFiles.java
(original)
+++ pdfbox/branches/2.0/debugger/src/main/java/org/apache/pdfbox/debugger/ui/RecentFiles.java
Thu Feb  2 16:33:09 2017
@@ -160,7 +160,7 @@ public class RecentFiles
 
     private void writeHistoryToPref(Queue<String> filePaths)
     {
-        if (filePaths.size() == 0)
+        if (filePaths.isEmpty())
         {
             return;
         }



Mime
View raw message