directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject [2/2] directory-kerby git commit: Checkstyle: fix TypeName check
Date Sat, 04 Jul 2015 14:59:00 GMT
Checkstyle: fix TypeName check


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/333ebe89
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/333ebe89
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/333ebe89

Branch: refs/heads/master
Commit: 333ebe899be5114449644513bc124e1f98a3bb10
Parents: 143b72e
Author: Stefan Seelmann <mail@stefan-seelmann.de>
Authored: Sat Jul 4 15:11:39 2015 +0200
Committer: Stefan Seelmann <mail@stefan-seelmann.de>
Committed: Sat Jul 4 16:55:52 2015 +0200

----------------------------------------------------------------------
 .../org/apache/kerby/config/ConfigObject.java     | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/333ebe89/lib/kerby-config/src/main/java/org/apache/kerby/config/ConfigObject.java
----------------------------------------------------------------------
diff --git a/lib/kerby-config/src/main/java/org/apache/kerby/config/ConfigObject.java b/lib/kerby-config/src/main/java/org/apache/kerby/config/ConfigObject.java
index 3d0cc17..2be3972 100644
--- a/lib/kerby-config/src/main/java/org/apache/kerby/config/ConfigObject.java
+++ b/lib/kerby-config/src/main/java/org/apache/kerby/config/ConfigObject.java
@@ -23,14 +23,14 @@ import java.util.ArrayList;
 import java.util.List;
 
 public class ConfigObject {
-    protected static enum VALUE_TYPE { PROPERTY, LIST, CONFIG };
+    protected static enum ValueType { PROPERTY, LIST, CONFIG };
 
-    private VALUE_TYPE valueType;
+    private ValueType valueType;
     private Object value;
 
     public ConfigObject(String value) {
         this.value = value;
-        this.valueType = VALUE_TYPE.PROPERTY;
+        this.valueType = ValueType.PROPERTY;
     }
 
     public ConfigObject(String[] values) {
@@ -40,7 +40,7 @@ public class ConfigObject {
         }
 
         this.value = valuesList;
-        this.valueType = VALUE_TYPE.LIST;
+        this.valueType = ValueType.LIST;
     }
 
     public ConfigObject(List<String> values) {
@@ -49,17 +49,17 @@ public class ConfigObject {
         } else {
             this.value = new ArrayList<String>();
         }
-        this.valueType = VALUE_TYPE.LIST;
+        this.valueType = ValueType.LIST;
     }
 
     public ConfigObject(Config value) {
         this.value = value;
-        this.valueType = VALUE_TYPE.CONFIG;
+        this.valueType = ValueType.CONFIG;
     }
 
     public String getPropertyValue() {
         String result = null;
-        if (valueType == VALUE_TYPE.PROPERTY) {
+        if (valueType == ValueType.PROPERTY) {
             result = (String) value;
         }
         return result;
@@ -68,7 +68,7 @@ public class ConfigObject {
     @SuppressWarnings("unchecked")
     public List<String> getListValues() {
         List<String> results = null;
-        if (valueType == VALUE_TYPE.LIST && value instanceof List<?>) {
+        if (valueType == ValueType.LIST && value instanceof List<?>) {
             results = (List<String>) value;
         }
 
@@ -77,7 +77,7 @@ public class ConfigObject {
 
     public Config getConfigValue() {
         Config result = null;
-        if (valueType == VALUE_TYPE.CONFIG) {
+        if (valueType == ValueType.CONFIG) {
             result = (Config) value;
         }
         return result;


Mime
View raw message