cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r479306 - /cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/Deprecation.java
Date Sun, 26 Nov 2006 07:49:18 GMT
Author: antonio
Date: Sat Nov 25 23:49:17 2006
New Revision: 479306

URL: http://svn.apache.org/viewvc?view=rev&rev=479306
Log:
Static method should be accessed directly.

Modified:
    cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/Deprecation.java

Modified: cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/Deprecation.java
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/Deprecation.java?view=diff&rev=479306&r1=479305&r2=479306
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/Deprecation.java (original)
+++ cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/util/Deprecation.java Sat Nov
25 23:49:17 2006
@@ -18,6 +18,7 @@
 
 import org.apache.avalon.framework.logger.ConsoleLogger;
 import org.apache.avalon.framework.logger.Logger;
+import org.apache.commons.lang.enums.Enum;
 import org.apache.commons.lang.enums.ValuedEnum;
 
 /**
@@ -89,7 +90,7 @@
         }
         
         public static LogLevel getLevel(String level) {
-            return (LogLevel)ValuedEnum.getEnum(LogLevel.class, level);
+            return (LogLevel)Enum.getEnum(LogLevel.class, level);
         }
     }
 



Mime
View raw message