mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-20 15:25:27 +00:00
8378050: Add missing @Override annotations in "java.awt.color" package
Reviewed-by: kizune, prr
This commit is contained in:
parent
1a967a0bca
commit
866cbcbecb
@ -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];
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
@ -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));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user