Mercurial > jhg
diff src/org/tmatesoft/hg/repo/HgLookup.java @ 622:4e6179bde4fc
Update to comply with Java 1.5 target
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 20 May 2013 16:56:40 +0200 |
parents | 7c0d2ce340b8 |
children | 6526d8adbc0f |
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/repo/HgLookup.java Sat May 18 22:23:57 2013 +0200 +++ b/src/org/tmatesoft/hg/repo/HgLookup.java Mon May 20 16:56:40 2013 +0200 @@ -118,7 +118,7 @@ String server = null; if (hgRepo != null && !hgRepo.isInvalid()) { PathsSection ps = hgRepo.getConfiguration().getPaths(); - server = key == null || key.trim().isEmpty() ? ps.getDefault() : ps.getString(key, null); + server = key == null || key.trim().length() == 0 ? ps.getDefault() : ps.getString(key, null); // XXX Java 1.5 isEmpty() } else if (key == null || key.trim().length() == 0) { throw new HgBadArgumentException("Can't look up empty key in a global configuration", null); }