Skip to content

Commit 45a6075

Browse files
committed
sort catch
1 parent 91c41e1 commit 45a6075

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java.desktop/share/classes/java/awt/color/ICC_Profile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ private void readObject(ObjectInputStream s)
15611561
case "CS_LINEAR_RGB" -> getInstance(ColorSpace.CS_LINEAR_RGB);
15621562
case null, default -> getInstance(data);
15631563
};
1564-
} catch (IllegalArgumentException | ClassCastException e) {
1564+
} catch (ClassCastException | IllegalArgumentException e) {
15651565
throw new InvalidObjectException("Invalid ICC Profile Data", e);
15661566
}
15671567
}

0 commit comments

Comments
 (0)