Removed string.isEmpty() method calls

This commit is contained in:
zml2008
2011-12-26 16:41:21 -08:00
parent 370ca96a44
commit 70205bfd11
5 changed files with 6 additions and 6 deletions

View File

@ -99,7 +99,7 @@ public class PropertiesConfiguration extends LocalConfiguration {
LocalSession.MAX_HISTORY_SIZE = Math.max(15, getInt("history-size", 15));
String snapshotsDir = getString("snapshots-dir", "");
if (!snapshotsDir.isEmpty()) {
if (snapshotsDir.length() > 0) {
snapshotRepo = new SnapshotRepository(snapshotsDir);
}

View File

@ -94,7 +94,7 @@ public class YAMLConfiguration extends LocalConfiguration {
LocalSession.EXPIRATION_GRACE = config.getInt("history.expiration", 10) * 60 * 1000;
String snapshotsDir = config.getString("snapshots.directory", "");
if (!snapshotsDir.isEmpty()) {
if (snapshotsDir.length() > 0) {
snapshotRepo = new SnapshotRepository(snapshotsDir);
}