Skip to content

Commit 517e37a

Browse files
ars18wrwUbuntu
authored andcommitted
Remove unnecessary TODOs
There is no issue in having an additional check just in case, even if the situations literally cannot happen DEVSIX-6522
1 parent c1c77e2 commit 517e37a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

io/src/main/java/com/itextpdf/io/font/woff2/Woff2Dec.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,6 @@ private static void readWoff2Header(byte[] data, int length, Woff2Header hdr) {
11111111
throw new FontCompressionException(FontCompressionException.READ_HEADER_FAILED);
11121112
}
11131113
src_offset = Round.round4(meta_offset + meta_length);
1114-
//TODO literary can't happen
11151114
if (src_offset > Integer.MAX_VALUE) {
11161115
throw new FontCompressionException(FontCompressionException.READ_HEADER_FAILED);
11171116
}
@@ -1122,7 +1121,6 @@ private static void readWoff2Header(byte[] data, int length, Woff2Header hdr) {
11221121
throw new FontCompressionException(FontCompressionException.READ_HEADER_FAILED);
11231122
}
11241123
src_offset = Round.round4(priv_offset + priv_length);
1125-
//TODO literary can't happen
11261124
if (src_offset > Integer.MAX_VALUE) {
11271125
throw new FontCompressionException(FontCompressionException.READ_HEADER_FAILED);
11281126
}

0 commit comments

Comments
 (0)