diff --git a/src/java.desktop/share/classes/java/awt/color/ICC_ColorSpace.java b/src/java.desktop/share/classes/java/awt/color/ICC_ColorSpace.java index f4a39c43e04..89cde4b0ef0 100644 --- a/src/java.desktop/share/classes/java/awt/color/ICC_ColorSpace.java +++ b/src/java.desktop/share/classes/java/awt/color/ICC_ColorSpace.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2026, 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 @@ -200,6 +200,7 @@ public class ICC_ColorSpace extends ColorSpace { * the number of components in this {@code ColorSpace} * @throws NullPointerException if {@code colorvalue} is {@code null} */ + @Override public float[] toRGB(float[] colorvalue) { if (this2srgb == null) { synchronized (this) { @@ -249,6 +250,7 @@ public class ICC_ColorSpace extends ColorSpace { * @throws ArrayIndexOutOfBoundsException if array length is not at least 3 * @throws NullPointerException if {@code rgbvalue} is {@code null} */ + @Override public float[] fromRGB(float[] rgbvalue) { if (srgb2this == null) { synchronized (this) { @@ -378,6 +380,7 @@ public class ICC_ColorSpace extends ColorSpace { * the number of components in this {@code ColorSpace} * @throws NullPointerException if {@code colorvalue} is {@code null} */ + @Override public float[] toCIEXYZ(float[] colorvalue) { if (this2xyz == null) { synchronized (this) { @@ -510,6 +513,7 @@ public class ICC_ColorSpace extends ColorSpace { * @throws ArrayIndexOutOfBoundsException if array length is not at least 3 * @throws NullPointerException if {@code colorvalue} is {@code null} */ + @Override public float[] fromCIEXYZ(float[] colorvalue) { if (xyz2this == null) { synchronized (this) { @@ -560,6 +564,7 @@ public class ICC_ColorSpace extends ColorSpace { * than {@code numComponents - 1} * @since 1.4 */ + @Override public float getMinValue(int component) { rangeCheck(component); return minVal[component]; @@ -583,6 +588,7 @@ public class ICC_ColorSpace extends ColorSpace { * than {@code numComponents - 1} * @since 1.4 */ + @Override public float getMaxValue(int component) { rangeCheck(component); return maxVal[component]; diff --git a/src/java.desktop/share/classes/java/awt/color/ICC_ProfileGray.java b/src/java.desktop/share/classes/java/awt/color/ICC_ProfileGray.java index f8de7d1581d..85b4b28b487 100644 --- a/src/java.desktop/share/classes/java/awt/color/ICC_ProfileGray.java +++ b/src/java.desktop/share/classes/java/awt/color/ICC_ProfileGray.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2026, 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 @@ -100,6 +100,7 @@ public final class ICC_ProfileGray extends ICC_Profile { * @return an array containing the components of the mediaWhitePointTag in * the ICC profile */ + @Override public float[] getMediaWhitePoint() { return super.getMediaWhitePoint(); } diff --git a/src/java.desktop/share/classes/java/awt/color/ICC_ProfileRGB.java b/src/java.desktop/share/classes/java/awt/color/ICC_ProfileRGB.java index 1c7fab265ac..9069c898261 100644 --- a/src/java.desktop/share/classes/java/awt/color/ICC_ProfileRGB.java +++ b/src/java.desktop/share/classes/java/awt/color/ICC_ProfileRGB.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2026, 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 @@ -135,6 +135,7 @@ public final class ICC_ProfileRGB extends ICC_Profile { * @return a 3-element {@code float} array containing the x, y, and z * components of the profile's {@code mediaWhitePointTag} */ + @Override public float[] getMediaWhitePoint() { return super.getMediaWhitePoint(); } @@ -186,6 +187,7 @@ public final class ICC_ProfileRGB extends ICC_Profile { * @throws ProfileDataException if the profile does not specify the * corresponding TRC as a single gamma value */ + @Override public float getGamma(int component) { return super.getGamma(toTag(component)); } @@ -218,6 +220,7 @@ public final class ICC_ProfileRGB extends ICC_Profile { * @throws ProfileDataException if the profile does not specify the * corresponding TRC as a table */ + @Override public short[] getTRC(int component) { return super.getTRC(toTag(component)); }