org.apache.commons.lang.StringUtils



Project apache/hbase in file ...n.java.org.apache.hadoop.hbase.util.HBaseFsck.java (2014-12-12)
@@ -49,6 +49,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 
 
+import org.apache.commons.lang.StringUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.hadoop.hbase.classification.InterfaceAudience;
@@ -4225,6 +4226,8 @@ public class HBaseFsck extends Configured {
       }
     }
 
+    errors.print("HBaseFsck command line options: " + StringUtils.join(args, " "));
+
     // pre-check current user has FS write permission or not
     try {
       preCheckPermission();
Project apache/hbase in file ...ache.hadoop.hbase.util.hbck.OfflineMetaRepair.java (2014-12-12)
@@ -19,6 +19,7 @@ package org.apache.hadoop.hbase.util.hbck;
 
 import java.io.IOException;
 
+import org.apache.commons.lang.StringUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.hadoop.hbase.classification.InterfaceAudience;
@@ -110,6 +111,8 @@ public class OfflineMetaRepair {
       }
     }
 
+    System.out.println("OfflineMetaRepair command line options: " + StringUtils.join(args, " "));
+
     // Fsck doesn't shutdown and and doesn't provide a way to shutdown its
     // threads cleanly, so we do a System.exit.
     boolean success = false;
Project impetus-opensource/Kundera in file ...s.client.cassandra.thrift.ThriftClientFactory.java (2013-01-08)
@@ -22,6 +22,7 @@ import net.dataforte.cassandra.pool.ConnectionPool;
 import net.dataforte.cassandra.pool.PoolConfiguration;
 import net.dataforte.cassandra.pool.PoolProperties;
 
+import org.apache.commons.lang.StringUtils;
 import org.apache.thrift.TException;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
@@ -130,6 +131,8 @@ public class ThriftClientFactory extends GenericClientFactory
             keyspace = (String) props.get(PersistenceProperties.KUNDERA_KEYSPACE);
         }
 
+        onValidation(contactNodes, defaultPort);
+
         PoolConfiguration prop = new PoolProperties();
         prop.setHost(contactNodes);
         prop.setPort(Integer.parseInt(defaultPort));
Project Athou/commafeed in file ....com.commafeed.backend.dao.FeedEntryStatusDAO.java (2013-08-07)
@@ -14,6 +14,7 @@ import javax.persistence.criteria.Path;
 import javax.persistence.criteria.Predicate;
 import javax.persistence.criteria.Root;
 
+import org.apache.commons.lang.StringUtils;
 import org.apache.commons.lang3.ObjectUtils;
 import org.hibernate.Criteria;
 import org.hibernate.criterion.Disjunction;
@@ -131,7 +132,7 @@ public class FeedEntryStatusDAO extends GenericDAO<FeedEntryStatus> {
 		if (keywords != null) {
 			Criteria contentJoin = criteria.createCriteria(FeedEntry_.content.getName(), "content", JoinType.INNER_JOIN);
 
-			for (String keyword : keywords.split(" ")) {
+			for (String keyword : StringUtils.split(keywords)) {
 				Disjunction or = Restrictions.disjunction();
 				or.add(Restrictions.ilike(FeedEntryContent_.content.getName(), keyword, MatchMode.ANYWHERE));
 				or.add(Restrictions.ilike(FeedEntryContent_.title.getName(), keyword, MatchMode.ANYWHERE));
Project Athou/commafeed in file ...va.edu.uci.ics.crawler4j.url.URLCanonicalizer.java (2013-08-22)
@@ -28,6 +28,8 @@ import java.util.Map;
 import java.util.SortedMap;
 import java.util.TreeMap;
 
+import org.apache.commons.lang.StringUtils;
+
 /**
  * See http://en.wikipedia.org/wiki/URL_normalization for a reference Note: some
  * parts of the code are adapted from: http://stackoverflow.com/a/4057470/405418
@@ -46,7 +48,7 @@ public class URLCanonicalizer {
 			URL canonicalURL = new URL(UrlResolver.resolveUrl(context == null ? "" : context, href));
 			
 			String host = canonicalURL.getHost().toLowerCase();
-			if (host == "") {
+			if (StringUtils.isBlank(host)) {
 				// This is an invalid Url.
 				return null;
 			}