]> source.dussan.org Git - jgit.git/commit
Replace chain of if statements with switch 64/140164/18
authorCarsten Hammer <carsten.hammer@t-online.de>
Tue, 21 May 2019 15:04:18 +0000 (17:04 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 14 Dec 2019 19:42:03 +0000 (20:42 +0100)
commit74bc50125d3a2cb0a7eb8c32118b3f9a9530a361
tree48e86457ef252be344ece68d9558f72fd23b911c
parent1b3a555f667712ece7f17f009b5444862cbac54f
Replace chain of if statements with switch

and switch over strings where possible. Sometimes if statements are
chained and form a series of comparisons against constants. Using switch
statements improves readability.

Bug: 545856
Change-Id: Iacb78956ee5c20db4d793e6b668508ec67466606
Signed-off-by: Carsten Hammer <carsten.hammer@t-online.de>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
20 files changed:
org.eclipse.jgit.pgm.test/src/org/eclipse/jgit/lib/CLIRepositoryTestCase.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/AmazonS3Client.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Remote.java
org.eclipse.jgit.ssh.apache/src/org/eclipse/jgit/internal/transport/sshd/JGitClientSession.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/dfs/DfsGarbageCollectorTest.java
org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AwtCredentialsProvider.java
org.eclipse.jgit/src/org/eclipse/jgit/blame/ReverseWalk.java
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/ManifestParser.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/CommitBuilder.java
org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/RevCommit.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/AdvertiseRefsHookChain.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PacketLineIn.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PostReceiveHookChain.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/PreReceiveHookChain.java
org.eclipse.jgit/src/org/eclipse/jgit/util/GitDateParser.java
org.eclipse.jgit/src/org/eclipse/jgit/util/StringUtils.java
org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoCRLFOutputStream.java
org.eclipse.jgit/src/org/eclipse/jgit/util/io/AutoLFOutputStream.java
org.eclipse.jgit/src/org/eclipse/jgit/util/sha1/SHA1.java