Skip to content

Commit

Permalink
8283701: Add final or sealed modifier to appropriate java.awt.color I…
Browse files Browse the repository at this point in the history
…CC_Profile API classes

Reviewed-by: bpb, aivanov, serb
  • Loading branch information
prrace committed Mar 30, 2022
1 parent d066856 commit eb5b712
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Expand Up @@ -83,7 +83,9 @@
*
* @see ICC_ColorSpace
*/
public class ICC_Profile implements Serializable {
public sealed class ICC_Profile implements Serializable
permits ICC_ProfileGray,
ICC_ProfileRGB {

/**
* Use serialVersionUID from JDK 1.2 for interoperability.
Expand Down
Expand Up @@ -65,7 +65,7 @@
* The inverse transform is done by converting the PCS Y components to device
* Gray via the inverse of the grayTRC.
*/
public class ICC_ProfileGray extends ICC_Profile {
public final class ICC_ProfileGray extends ICC_Profile {

/**
* Use serialVersionUID from JDK 1.2 for interoperability.
Expand Down
Expand Up @@ -80,7 +80,7 @@
* RGB components through the inverse of the above 3x3 matrix, and then
* converting linear RGB to device RGB through inverses of the TRCs.
*/
public class ICC_ProfileRGB extends ICC_Profile {
public final class ICC_ProfileRGB extends ICC_Profile {

/**
* Use serialVersionUID from JDK 1.2 for interoperability.
Expand Down

1 comment on commit eb5b712

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.