harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r417917 - /incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/EnumConstantNotPresentException.java
Date Thu, 29 Jun 2006 01:43:23 GMT
Author: ndbeyer
Date: Wed Jun 28 18:43:22 2006
New Revision: 417917

URL: http://svn.apache.org/viewvc?rev=417917&view=rev
Log:
suppress warnings

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/EnumConstantNotPresentException.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/EnumConstantNotPresentException.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/EnumConstantNotPresentException.java?rev=417917&r1=417916&r2=417917&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/EnumConstantNotPresentException.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/java/lang/EnumConstantNotPresentException.java
Wed Jun 28 18:43:22 2006
@@ -28,6 +28,7 @@
 
     private static final long serialVersionUID = -6046998521960521108L;
 
+    @SuppressWarnings("unchecked")
     private final Class<? extends Enum> enumType;
 
     private final String constantName;
@@ -40,6 +41,7 @@
      * @param enumType The enum type.
      * @param constantName The missing constant name.
      */
+    @SuppressWarnings("unchecked")
     public EnumConstantNotPresentException(Class<? extends Enum> enumType,
             String constantName) {
         super("The enum constant " + enumType.getName() + "." + constantName
@@ -55,6 +57,7 @@
      * 
      * @return A <code>Class</code> instance.
      */
+    @SuppressWarnings("unchecked")
     public Class<? extends Enum> enumType() {
         return enumType;
     }



Mime
View raw message