diff --git a/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java b/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java index da14d24892680..ff8e0745e19d7 100644 --- a/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java +++ b/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java @@ -767,24 +767,6 @@ private interface BuiltInProfile { deferralInfo = pdi; } - /** - * Frees the resources associated with an {@code ICC_Profile} object. - * - * @deprecated The {@code finalize} method has been deprecated. Subclasses - * that override {@code finalize} in order to perform cleanup should - * be modified to use alternative cleanup mechanisms and to remove - * the overriding {@code finalize} method. When overriding the - * {@code finalize} method, its implementation must explicitly - * ensure that {@code super.finalize()} is invoked as described in - * {@link Object#finalize}. See the specification for {@link - * Object#finalize()} for further information about migration - * options. - */ - @Deprecated(since = "9", forRemoval = true) - @SuppressWarnings("removal") - protected void finalize() { - } - /** * Constructs an {@code ICC_Profile} object corresponding to the data in a * byte array. diff --git a/src/java.desktop/share/classes/java/awt/image/ColorModel.java b/src/java.desktop/share/classes/java/awt/image/ColorModel.java index 0a1f8749da678..02ff7db16704a 100644 --- a/src/java.desktop/share/classes/java/awt/image/ColorModel.java +++ b/src/java.desktop/share/classes/java/awt/image/ColorModel.java @@ -1617,26 +1617,6 @@ public boolean isCompatibleSampleModel(SampleModel sm) { ("This method is not supported by this color model"); } - /** - * Disposes of system resources associated with this - * {@code ColorModel} once this {@code ColorModel} is no - * longer referenced. - * - * @deprecated The {@code finalize} method has been deprecated. - * Subclasses that override {@code finalize} in order to perform cleanup - * should be modified to use alternative cleanup mechanisms and - * to remove the overriding {@code finalize} method. - * When overriding the {@code finalize} method, its implementation must explicitly - * ensure that {@code super.finalize()} is invoked as described in {@link Object#finalize}. - * See the specification for {@link Object#finalize()} for further - * information about migration options. - */ - @Deprecated(since = "9", forRemoval = true) - @SuppressWarnings("removal") - public void finalize() { - } - - /** * Returns a {@code Raster} representing the alpha channel of an * image, extracted from the input {@code Raster}, provided that diff --git a/src/java.desktop/share/classes/java/awt/image/IndexColorModel.java b/src/java.desktop/share/classes/java/awt/image/IndexColorModel.java index 51b5504de649e..ec9e4bedd6f05 100644 --- a/src/java.desktop/share/classes/java/awt/image/IndexColorModel.java +++ b/src/java.desktop/share/classes/java/awt/image/IndexColorModel.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1995, 2021, 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 @@ -1510,25 +1510,6 @@ public BigInteger getValidPixels() { } } - /** - * Disposes of system resources associated with this - * {@code ColorModel} once this {@code ColorModel} is no - * longer referenced. - * - * @deprecated The {@code finalize} method has been deprecated. - * Subclasses that override {@code finalize} in order to perform cleanup - * should be modified to use alternative cleanup mechanisms and - * to remove the overriding {@code finalize} method. - * When overriding the {@code finalize} method, its implementation must explicitly - * ensure that {@code super.finalize()} is invoked as described in {@link Object#finalize}. - * See the specification for {@link Object#finalize()} for further - * information about migration options. - */ - @Deprecated(since = "9", forRemoval = true) - @SuppressWarnings("removal") - public void finalize() { - } - /** * Returns the {@code String} representation of the contents of * this {@code ColorModel} object.