stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ud...@apache.org
Subject [1/2] git commit: string.utils to check empty
Date Thu, 16 Oct 2014 11:26:04 GMT
Repository: stratos
Updated Branches:
  refs/heads/4.0.0-grouping 24d47c29b -> 35ef22793


string.utils to check empty


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/5f4c8596
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/5f4c8596
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/5f4c8596

Branch: refs/heads/4.0.0-grouping
Commit: 5f4c859605a72d6ae1ac23a1a2097bed63edec2c
Parents: 24d47c2
Author: Udara Liyanage <udara@wso2.com>
Authored: Wed Oct 15 17:15:01 2014 +0530
Committer: Udara Liyanage <udara@wso2.com>
Committed: Wed Oct 15 17:15:01 2014 +0530

----------------------------------------------------------------------
 .../java/org/apache/stratos/metadataservice/util/ConfUtil.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/5f4c8596/components/org.apache.stratos.metadataservice/src/main/java/org/apache/stratos/metadataservice/util/ConfUtil.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.metadataservice/src/main/java/org/apache/stratos/metadataservice/util/ConfUtil.java
b/components/org.apache.stratos.metadataservice/src/main/java/org/apache/stratos/metadataservice/util/ConfUtil.java
index 1abbf07..b6d4ce0 100644
--- a/components/org.apache.stratos.metadataservice/src/main/java/org/apache/stratos/metadataservice/util/ConfUtil.java
+++ b/components/org.apache.stratos.metadataservice/src/main/java/org/apache/stratos/metadataservice/util/ConfUtil.java
@@ -21,6 +21,7 @@ package org.apache.stratos.metadataservice.util;
 
 import org.apache.commons.configuration.ConfigurationException;
 import org.apache.commons.configuration.XMLConfiguration;
+import org.apache.commons.lang.StringUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.stratos.metadataservice.Constants;
@@ -45,7 +46,7 @@ public class ConfUtil {
 		try {
 
 			File confFile;
-			if (configFilePath != null && !configFilePath.isEmpty()) {
+			if (StringUtils.isNotEmpty(configFilePath)) {
 				confFile = new File(configFilePath);
 
 			} else {


Mime
View raw message