Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Hammer2019-04-18 16:15:42 -0400
committerCarsten Hammer2019-04-27 08:15:35 -0400
commit5b6d6eacaf221925f3391744387554458e0e8511 (patch)
tree150a643335349829a2efca15998728375353e7b9 /org.eclipse.egit.core.test/src
parenta2962166dc7668df4614605d16045b0891e49e52 (diff)
downloadegit-5b6d6eacaf221925f3391744387554458e0e8511.tar.gz
egit-5b6d6eacaf221925f3391744387554458e0e8511.tar.xz
egit-5b6d6eacaf221925f3391744387554458e0e8511.zip
Use String.isEmpty() instead of comparing to ""
Use of String.equals("") can be replaced with with String.length() == 0 (for JDK5 and lower) or String.isEmpty() (for JDK6 and higher) Change-Id: I278bcc6e7095802469cfe2db24f029bb5dc870a9 Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Diffstat (limited to 'org.eclipse.egit.core.test/src')
-rw-r--r--org.eclipse.egit.core.test/src/org/eclipse/egit/core/GitMoveDeleteHookTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/GitMoveDeleteHookTest.java b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/GitMoveDeleteHookTest.java
index d63569468..7667538b7 100644
--- a/org.eclipse.egit.core.test/src/org/eclipse/egit/core/GitMoveDeleteHookTest.java
+++ b/org.eclipse.egit.core.test/src/org/eclipse/egit/core/GitMoveDeleteHookTest.java
@@ -744,14 +744,14 @@ public class GitMoveDeleteHookTest {
private void registerWorkspaceRelativeTestDirProject(String parent, String projName) {
- if ((parent != null) && !parent.equals(""))
+ if ((parent != null) && !parent.isEmpty())
registerWorkspaceRelativeTestDir(parent);
else
registerWorkspaceRelativeTestDir(projName);
}
private void registerWorkspaceRelativeTestDir(String relativeDir) {
- if ((relativeDir != null) && !relativeDir.equals("")) {
+ if ((relativeDir != null) && !relativeDir.isEmpty()) {
File d = new File(workspace, relativeDir);
testDirs.add(d);
}

Back to the top