You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2018/12/05 12:51:05 UTC

[myfaces-tobago] 01/02: checkstyle

This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git

commit af89c117890c929c1ff07c1cf8329267c36605d4
Author: Udo Schnurpfeil <lo...@apache.org>
AuthorDate: Wed Dec 5 13:25:10 2018 +0100

    checkstyle
---
 .../java/org/apache/myfaces/tobago/example/demo/Version.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Version.java b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Version.java
index b3d6536..fe7abd9 100644
--- a/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Version.java
+++ b/tobago-example/tobago-example-demo/src/main/java/org/apache/myfaces/tobago/example/demo/Version.java
@@ -28,9 +28,9 @@ import javax.inject.Named;
 @ApplicationScoped
 public class Version {
 
-  private static final boolean cdi10 = hasClass("javax.enterprise.context.Conversation");
-  private static final boolean cdi1112 = hasClass("javax.enterprise.context.Destroyed");
-  private static final boolean cdi20 = hasClass("javax.enterprise.context.BeforeDestroyed");
+  private static final boolean CDI10 = hasClass("javax.enterprise.context.Conversation");
+  private static final boolean CDI1112 = hasClass("javax.enterprise.context.Destroyed");
+  private static final boolean CDI20 = hasClass("javax.enterprise.context.BeforeDestroyed");
 
   private static boolean hasClass(String clazz) {
     try {
@@ -66,14 +66,14 @@ public class Version {
   }
 
   public boolean isCdiVersion10() {
-    return cdi10 && !cdi1112;
+    return CDI10 && !CDI1112;
   }
 
   public boolean isCdiVersion1112() {
-    return cdi1112 && !cdi20;
+    return CDI1112 && !CDI20;
   }
 
   public boolean isCdiVersion20() {
-    return cdi20;
+    return CDI20;
   }
 }