Skip to content

Commit 48741b4

Browse files
committed
[Color] Avoid Short#compare usage in ColorResourcesTableCreator.java since it requires API level 19
PiperOrigin-RevId: 420358384
1 parent 4527272 commit 48741b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/java/com/google/android/material/color/ColorResourcesTableCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private ColorResourcesTableCreator() {}
5858
new Comparator<ColorResource>() {
5959
@Override
6060
public int compare(ColorResource res1, ColorResource res2) {
61-
return Short.compare(res1.entryId, res2.entryId);
61+
return res1.entryId - res2.entryId;
6262
}
6363
};
6464

0 commit comments

Comments
 (0)