harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r449062 - in /incubator/harmony/enhanced/classlib/trunk/modules/luni/src: main/java/java/lang/Enum.java test/java/org/apache/harmony/tests/java/lang/EnumTest.java
Date Fri, 22 Sep 2006 19:37:34 GMT
Author: geirm
Date: Fri Sep 22 12:37:33 2006
New Revision: 449062

URL: http://svn.apache.org/viewvc?view=rev&rev=449062
Log:
Tweak to Enum.toString() to remove the "Enum:" prefix.

This conforms with Sun's RI.


Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Enum.java
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/lang/EnumTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Enum.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Enum.java?view=diff&rev=449062&r1=449061&r2=449062
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Enum.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/Enum.java
Fri Sep 22 12:37:33 2006
@@ -76,7 +76,7 @@
      */
     @Override
     public String toString() {
-        return "Enum:" + name;
+        return name;
     }
 
     /**

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/lang/EnumTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/lang/EnumTest.java?view=diff&rev=449062&r1=449061&r2=449062
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/lang/EnumTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/test/java/org/apache/harmony/tests/java/lang/EnumTest.java
Fri Sep 22 12:37:33 2006
@@ -104,7 +104,7 @@
      * @tests java.lang.Enum#toString()
      */
     public void test_toString() {
-        assertTrue(moe.toString().contains("MOE"));
+        assertTrue(moe.toString().equals("MOE"));
     }
 
     /**



Mime
View raw message