Skip to content

Commit 09dbd9c

Browse files
committed
PDFBOX-6000: optimize if-clause as proposed by Tilman
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1925464 13f79535-47bb-0310-9956-ffa450edef68
1 parent f05ca7b commit 09dbd9c

File tree

1 file changed

+1
-1
lines changed
  • pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding

1 file changed

+1
-1
lines changed

pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/GlyphList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ else if ((name.length() == 7 && name.startsWith("uni"))
236236
|| (name.length() == 5 && name.startsWith("u")))
237237
{
238238
// test for Unicode name in the format uniXXXX/uXXXX where X is hex
239-
int start = name.startsWith("uni") ? 3 : 1;
239+
int start = name.length() == 7 ? 3 : 1;
240240
try
241241
{
242242
int codePoint = Integer.parseInt(name, start, start + 4, 16);

0 commit comments

Comments
 (0)