Merge PR #284
  remove apache-commons usage

Project: http://git-wip-us.apache.org/repos/asf/cayenne/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne/commit/9dce81b8
Tree: http://git-wip-us.apache.org/repos/asf/cayenne/tree/9dce81b8
Diff: http://git-wip-us.apache.org/repos/asf/cayenne/diff/9dce81b8

Branch: refs/heads/master
Commit: 9dce81b8bca9c67d71457d08db59d416dc84c56a
Parents: 4314caf
Author: Nikita Timofeev <stari...@gmail.com>
Authored: Wed Apr 11 14:42:25 2018 +0300
Committer: Nikita Timofeev <stari...@gmail.com>
Committed: Wed Apr 11 14:42:25 2018 +0300

----------------------------------------------------------------------
 .../java/org/apache/cayenne/modeler/pref/DBConnectionInfo.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/9dce81b8/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/pref/DBConnectionInfo.java
----------------------------------------------------------------------
diff --git 
a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/pref/DBConnectionInfo.java
 
b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/pref/DBConnectionInfo.java
index 4295254..da2d9d8 100644
--- 
a/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/pref/DBConnectionInfo.java
+++ 
b/modeler/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/pref/DBConnectionInfo.java
@@ -36,8 +36,6 @@ import org.apache.cayenne.modeler.ClassLoadingService;
 import org.apache.cayenne.pref.CayennePreference;
 import org.apache.cayenne.util.Util;
 
-import static org.apache.commons.lang3.StringUtils.isBlank;
-
 public class DBConnectionInfo extends CayennePreference {
 
        private static final String EMPTY_STRING = "";
@@ -217,7 +215,7 @@ public class DBConnectionInfo extends CayennePreference {
                        throw new SQLException("No DB URL set.");
                }
 
-               if (!isBlank(getPassword()) && isBlank(getUserName())) {
+               if (!Util.isBlank(getPassword()) && 
Util.isBlank(getUserName())) {
                        throw new SQLException("No username when password is 
set.");
                }
 

Reply via email to