Skip to content

Commit 5191b0c

Browse files
committed
PDFBOX-5660: simplify, as suggested by Valery Bokov; closes #302
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1929429 13f79535-47bb-0310-9956-ffa450edef68
1 parent 61d4253 commit 5191b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDTrueTypeFont.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ protected Encoding readEncodingFromFont() throws IOException
275275
// non-symbolic fonts don't have a built-in encoding per se, but there encoding is
276276
// assumed to be StandardEncoding by the PDF spec unless an explicit Encoding is present
277277
// which will override this anyway
278-
if (getSymbolicFlag() != null &&!getSymbolicFlag())
278+
if (Boolean.FALSE.equals(getSymbolicFlag()))
279279
{
280280
return StandardEncoding.INSTANCE;
281281
}

0 commit comments

Comments
 (0)