Skip to content

Commit 9330f0f

Browse files
committed
refactor: clean up formatting and improve readability in PdfDocument.java
1 parent 0f564c2 commit 9330f0f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/grimmory/pdfium4j/PdfDocument.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ MemorySegment handle() {
127127
private Map<Long, int[]> textIndex = null;
128128

129129
/** Internal metadata about the document source. */
130-
record SourceInfo(
131-
Path path, Path tempFile, byte[] sourceBytes, int version, Thread ownerThread) {
130+
record SourceInfo(Path path, Path tempFile, byte[] sourceBytes, int version, Thread ownerThread) {
132131
@Override
133132
public boolean equals(Object o) {
134133
if (this == o) {
@@ -346,7 +345,8 @@ static PdfDocument open(MemorySegment segment, PdfProcessingPolicy policy) {
346345
Arena arena = Arena.ofShared();
347346
boolean success = false;
348347
try {
349-
PdfDocument document = PdfDocumentOpener.open(segment, null, resolvePolicy(policy), arena, null);
348+
PdfDocument document =
349+
PdfDocumentOpener.open(segment, null, resolvePolicy(policy), arena, null);
350350
success = true;
351351
return document;
352352
} finally {

0 commit comments

Comments
 (0)