You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2009/12/12 16:40:29 UTC

svn commit: r889942 - /myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/FacesVersion.java

Author: bommel
Date: Sat Dec 12 15:40:28 2009
New Revision: 889942

URL: http://svn.apache.org/viewvc?rev=889942&view=rev
Log:
checkstyle

Modified:
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/FacesVersion.java

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/FacesVersion.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/FacesVersion.java?rev=889942&r1=889941&r2=889942&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/FacesVersion.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/FacesVersion.java Sat Dec 12 15:40:28 2009
@@ -25,7 +25,7 @@
   VERSION_12,
   VERSION_20;
 
-  public static FacesVersion CURRENT;
+  private static FacesVersion currentVersion;
 
   static {
     try {
@@ -34,15 +34,15 @@
       try {
         Application.class.getMethod("getExceptionHandler");
 
-        CURRENT = VERSION_20;
+        currentVersion = VERSION_20;
 
 
       } catch (NoSuchMethodException e) {
-        CURRENT = VERSION_12;
+        currentVersion = VERSION_12;
       }
 
     } catch (NoSuchMethodException e) {
-      CURRENT = VERSION_11;
+      currentVersion = VERSION_11;
     }
   }
 
@@ -51,7 +51,7 @@
    * @return Supports 1.2 or higher
    */
   public static boolean supports12() {
-    return CURRENT == VERSION_12 || CURRENT == VERSION_20;
+    return currentVersion == VERSION_12 || currentVersion == VERSION_20;
   }
 
   /**
@@ -59,6 +59,6 @@
    * @return Supports 2.0 or higher
    */
   public static boolean supports20() {
-    return CURRENT == VERSION_20;
+    return currentVersion == VERSION_20;
   }
 }