harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From py...@apache.org
Subject svn commit: r545049 - /harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/lang/Enum.java
Date Thu, 07 Jun 2007 03:43:09 GMT
Author: pyang
Date: Wed Jun  6 20:43:08 2007
New Revision: 545049

URL: http://svn.apache.org/viewvc?view=rev&rev=545049
Log:
Apply patch for HARMONY-4058([classlib][luni][java6] new method finalize() in java.lang.Enum)

Modified:
    harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/lang/Enum.java

Modified: harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/lang/Enum.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/lang/Enum.java?view=diff&rev=545049&r1=545048&r2=545049
==============================================================================
--- harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/lang/Enum.java
(original)
+++ harmony/enhanced/classlib/branches/java6/modules/luni/src/main/java/java/lang/Enum.java
Wed Jun  6 20:43:08 2007
@@ -202,4 +202,15 @@
             return null;
         }
     }
+    
+
+    /**
+     * All enum classes should not have <code>finalize</code> methods.
+     * 
+     * @since 1.6
+     */
+    @Override
+    protected final void finalize() {
+        // should not have this method
+    }
 }



Mime
View raw message