Skip to content

Commit cf87748

Browse files
committed
JAVA-847: Replaced !String.isEmpty() with String.length() != 0 to remove Java 6 dependency
1 parent d799975 commit cf87748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/com/mongodb/MongoClientURI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ public MongoClientURI(String uri, MongoClientOptions.Builder builder) {
229229
hosts = Collections.unmodifiableList(all);
230230
}
231231

232-
if (nsPart != null && !nsPart.isEmpty()) { // database,_collection
232+
if (nsPart != null && nsPart.length() != 0) { // database,_collection
233233
int idx = nsPart.indexOf(".");
234234
if (idx < 0) {
235235
database = nsPart;

0 commit comments

Comments
 (0)