aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2011-09-02 16:01:19 (EDT)
committerKevin Sawicki2011-09-02 16:01:19 (EDT)
commit3e5103301d667de081b8d7e77ea12ab51113d0e5 (patch)
tree98c0a883418af4ba7912a60bd59338ba590fc556
parentaccef75a2d85571af33978f7eef78d557cde2703 (diff)
downloadegit-3e5103301d667de081b8d7e77ea12ab51113d0e5.zip
egit-3e5103301d667de081b8d7e77ea12ab51113d0e5.tar.gz
egit-3e5103301d667de081b8d7e77ea12ab51113d0e5.tar.bz2
GitFileHistory: isEmpty() is undefined for the type String in Java 1.5refs/changes/24/4124/2
-rw-r--r--org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/GitFileHistory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/GitFileHistory.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/GitFileHistory.java
index 5ee328d..84af96f 100644
--- a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/GitFileHistory.java
+++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/GitFileHistory.java
@@ -66,7 +66,7 @@ class GitFileHistory extends FileHistory implements IAdaptable {
db = rm.getRepository();
walk = new KidWalk(db);
gitPath = rm.getRepoRelativePath(resource);
- if(gitPath == null || gitPath.isEmpty()) {
+ if (gitPath == null || gitPath.length() == 0) {
walk.setTreeFilter(TreeFilter.ANY_DIFF);
} else {
walk.setTreeFilter(AndTreeFilter.create(PathFilterGroup