Skip to content

Commit e484104

Browse files
committed
Directly use Integer.compare
Signed-off-by: Sven Strickroth <[email protected]>
1 parent fd49c87 commit e484104

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/org/owasp/html/HtmlElementTables.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,7 @@ public enum TextContentModelBit {
722722
static final Comparator<int[]> COMPARE_BY_ZEROTH =
723723
new Comparator<int[]>() {
724724
public int compare(int[] a, int[] b) {
725-
// Integer.compare is @since JDK 7
726-
return a[0] - b[0];
725+
return Integer.compare(a[0], b[0]);
727726
}
728727
};
729728

0 commit comments

Comments
 (0)