pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1720927 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/TTFGlyph2D.java
Date Sat, 19 Dec 2015 13:47:46 GMT
Author: tilman
Date: Sat Dec 19 13:47:46 2015
New Revision: 1720927

URL: http://svn.apache.org/viewvc?rev=1720927&view=rev
Log:
PDFBOX-2852: simplify code where expression is never null

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/TTFGlyph2D.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/TTFGlyph2D.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/TTFGlyph2D.java?rev=1720927&r1=1720926&r2=1720927&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/TTFGlyph2D.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/rendering/TTFGlyph2D.java Sat Dec
19 13:47:46 2015
@@ -159,7 +159,8 @@ final class TTFGlyph2D implements Glyph2
                 glyphs.put(gid, glyphPath);
             }
         }
-        return glyphPath != null ? (GeneralPath) glyphPath.clone() : null; // todo: expensive
+        // todo: expensive
+        return (GeneralPath) glyphPath.clone();
     }
 
     @Override



Mime
View raw message