pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1603541 - /pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/util/autodetect/FontFileFinder.java
Date Wed, 18 Jun 2014 17:20:44 GMT
Author: tilman
Date: Wed Jun 18 17:20:43 2014
New Revision: 1603541

URL: http://svn.apache.org/r1603541
Log:
PDFBOX-2147: replace redundant if statements

Modified:
    pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/util/autodetect/FontFileFinder.java

Modified: pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/util/autodetect/FontFileFinder.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/util/autodetect/FontFileFinder.java?rev=1603541&r1=1603540&r2=1603541&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/util/autodetect/FontFileFinder.java
(original)
+++ pdfbox/trunk/fontbox/src/main/java/org/apache/fontbox/util/autodetect/FontFileFinder.java
Wed Jun 18 17:20:43 2014
@@ -160,10 +160,6 @@ public class FontFileFinder
     private boolean checkFontfile(File file)
     {
         String name = file.getName().toLowerCase();
-        if (name.endsWith(".ttf") || name.endsWith(".otf") || name.endsWith(".pfb") || name.endsWith(".ttc"))
-        {
-            return true;
-        }
-        return false;
+        return name.endsWith(".ttf") || name.endsWith(".otf") || name.endsWith(".pfb") ||
name.endsWith(".ttc");
     }
 }



Mime
View raw message