]> source.dussan.org Git - jgit.git/commit
Use String.isEmpty() instead of comparing to "" 59/140159/5
authorCarsten Hammer <carsten.hammer@t-online.de>
Sat, 6 Apr 2019 17:38:27 +0000 (19:38 +0200)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Thu, 11 Apr 2019 02:48:31 +0000 (11:48 +0900)
commit0db509f7e750336923fcee858a7152129dc1a321
treeb7535623ebdaff962b347e47fb8eda211d865196
parente876a70ede47559f927fa285169f267aa445f2dd
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>
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/lib/CLIRepositoryTestCase.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Blame.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Status.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java