chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1481575 - /chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/CmisEnumHelper.java
Date Sun, 12 May 2013 14:46:02 GMT
Author: fmui
Date: Sun May 12 14:46:01 2013
New Revision: 1481575

URL: http://svn.apache.org/r1481575
Log:
fixed Java 6 compilation issue

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/CmisEnumHelper.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/CmisEnumHelper.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/CmisEnumHelper.java?rev=1481575&r1=1481574&r2=1481575&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/CmisEnumHelper.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/CmisEnumHelper.java
Sun May 12 14:46:01 2013
@@ -52,7 +52,7 @@ import org.apache.chemistry.opencmis.com
 public class CmisEnumHelper {
 
     @SuppressWarnings("unchecked")
-    public static <E extends Enum<E>> E fromValue(final String value, final Class<E>
clazz) {
+    public static <E extends Enum<?>> E fromValue(final String value, final Class<E>
clazz) {
         if (value == null || value.length() == 0) {
             return null;
         }
@@ -113,7 +113,7 @@ public class CmisEnumHelper {
     }
 
     @SuppressWarnings("unchecked")
-    public static <E extends Enum<E>> E fromValue(final BigInteger value, final
Class<E> clazz) {
+    public static <E extends Enum<?>> E fromValue(final BigInteger value, final
Class<E> clazz) {
         if (value == null) {
             return null;
         }



Mime
View raw message