Skip to content

Commit a65446a

Browse files
committed
Removed from TestCase class use of String.isEmpty(), which doesn't exist on Java 5
1 parent 7a6a055 commit a65446a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/com/mongodb/util/TestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public TestCase(){
5151
public static synchronized MongoClientURI getMongoClientURI() {
5252
if (mongoClientURI == null) {
5353
String mongoURIProperty = System.getProperty(MONGODB_URI_SYSTEM_PROPERTY_NAME);
54-
String mongoURIString = mongoURIProperty == null || mongoURIProperty.isEmpty() ? DEFAULT_URI : mongoURIProperty;
54+
String mongoURIString = mongoURIProperty == null || mongoURIProperty.length() == 0 ? DEFAULT_URI : mongoURIProperty;
5555
mongoClientURI = new MongoClientURI(mongoURIString);
5656
}
5757
return mongoClientURI;

0 commit comments

Comments
 (0)