diff options
author | Carsten Hammer <carsten.hammer@t-online.de> | 2019-04-06 19:38:27 +0200 |
---|---|---|
committer | David Pursehouse <david.pursehouse@gmail.com> | 2019-04-11 11:48:31 +0900 |
commit | 0db509f7e750336923fcee858a7152129dc1a321 (patch) | |
tree | b7535623ebdaff962b347e47fb8eda211d865196 /org.eclipse.jgit.junit/src/org | |
parent | e876a70ede47559f927fa285169f267aa445f2dd (diff) | |
download | jgit-0db509f7e750336923fcee858a7152129dc1a321.tar.gz jgit-0db509f7e750336923fcee858a7152129dc1a321.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: Id1462d22c5d249485d87993263a9239809e73c55
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit.junit/src/org')
-rw-r--r-- | org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java index 55a7766f60..356d9d82ea 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java @@ -1235,7 +1235,7 @@ public class TestRepository<R extends Repository> implements AutoCloseable { firstParentId = parents.get(0); ObjectId cid; - if (changeId.equals("")) + if (changeId.isEmpty()) cid = ChangeIdUtil.computeChangeId(c.getTreeId(), firstParentId, c.getAuthor(), c.getCommitter(), message); else |