Skip to content

Commit 182113c

Browse files
committed
PDFBOX-5660: use jdk11 API
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1924077 13f79535-47bb-0310-9956-ffa450edef68
1 parent 64a20d8 commit 182113c

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public final byte[] encode(String text) throws IOException
336336

337337
// multi-byte encoding with 1 to 4 bytes
338338
byte[] bytes = encode(codePoint);
339-
out.write(bytes);
339+
out.writeBytes(bytes);
340340

341341
offset += Character.charCount(codePoint);
342342
}

0 commit comments

Comments
 (0)