diff options
| author | Tomasz Zarna | 2011-09-02 20:01:19 +0000 |
|---|---|---|
| committer | Kevin Sawicki | 2011-09-02 20:01:19 +0000 |
| commit | 3e5103301d667de081b8d7e77ea12ab51113d0e5 (patch) | |
| tree | 98c0a883418af4ba7912a60bd59338ba590fc556 | |
| parent | accef75a2d85571af33978f7eef78d557cde2703 (diff) | |
| download | egit-3e5103301d667de081b8d7e77ea12ab51113d0e5.tar.gz egit-3e5103301d667de081b8d7e77ea12ab51113d0e5.tar.xz egit-3e5103301d667de081b8d7e77ea12ab51113d0e5.zip | |
GitFileHistory: isEmpty() is undefined for the type String in Java 1.5
Change-Id: Idd691826525bb7c57ff9840846629eec3409cbd7
| -rw-r--r-- | org.eclipse.egit.core/src/org/eclipse/egit/core/internal/storage/GitFileHistory.java | 2 |
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 5ee328d08b..84af96f957 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 |
