Skip to content
Permalink
Browse files
8273102: Delete deprecated for removal the empty finalize() in java.d…
…esktop module

Reviewed-by: pbansal, aivanov, iris, prr
  • Loading branch information
mrserb committed Oct 6, 2021
1 parent 9945f7a commit 9561fea79035f23ca3a6619c9e150433cdf4a232
Showing 3 changed files with 0 additions and 57 deletions.
@@ -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.
@@ -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
@@ -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.

1 comment on commit 9561fea

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 9561fea Oct 6, 2021

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.