Skip to content
Permalink
Browse files
8252817: Cleanup the classes in the java.awt.color package
Reviewed-by: jdv, pbansal
  • Loading branch information
mrserb committed Sep 10, 2020
1 parent 44a74da commit ff21696bc00d447bda61df826f1ff2d2ab2cf969
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 128 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -38,7 +38,7 @@
/**
* This exception is thrown if the native CMM returns an error.
*/
public class CMMException extends java.lang.RuntimeException {
public class CMMException extends RuntimeException {

/**
* Use serialVersionUID from JDK 1.2 for interoperability.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -35,6 +35,7 @@

package java.awt.color;

import java.io.Serializable;
import java.lang.annotation.Native;

import sun.java2d.cmm.CMSManager;
@@ -91,9 +92,12 @@
*
* @see ICC_ColorSpace
*/
public abstract class ColorSpace implements java.io.Serializable {
public abstract class ColorSpace implements Serializable {

static final long serialVersionUID = -409452704308689724L;
/**
* Use serialVersionUID from JDK 1.2 for interoperability.
*/
private static final long serialVersionUID = -409452704308689724L;

private int type;
private int numComponents;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1997, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -77,7 +77,10 @@
*/
public class ICC_ColorSpace extends ColorSpace {

static final long serialVersionUID = 3455889114070431483L;
/**
* Use serialVersionUID from JDK 1.2 for interoperability.
*/
private static final long serialVersionUID = 3455889114070431483L;

private ICC_Profile thisProfile;
private float[] minVal;

1 comment on commit ff21696

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on ff21696 Sep 10, 2020

Choose a reason for hiding this comment

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

Review

Issues

Please sign in to comment.