8175984: ICC_Profile has un-needed, not-empty finalize method
authorprr
Fri, 25 Oct 2019 13:32:01 -0700
changeset 59172 6654f5611420
parent 59171 85d7af399ef5
child 59173 0fa6b6461451
8175984: ICC_Profile has un-needed, not-empty finalize method Reviewed-by: jdv, serb
src/java.desktop/share/classes/java/awt/color/ICC_Profile.java
--- a/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java	Thu Oct 24 01:02:08 2019 -0700
+++ b/src/java.desktop/share/classes/java/awt/color/ICC_Profile.java	Fri Oct 25 13:32:01 2019 -0700
@@ -760,11 +760,6 @@
      */
     @Deprecated(since="9")
     protected void finalize () {
-        if (cmmProfile != null) {
-            CMSManager.getModule().freeProfile(cmmProfile);
-        } else if (profileActivator != null) {
-            ProfileDeferralMgr.unregisterDeferral(profileActivator);
-        }
     }
 
     /**