diff options
author | David Pursehouse <david.pursehouse@gmail.com> | 2018-10-02 13:06:24 +0900 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2018-10-10 11:30:25 +0200 |
commit | b3adaf7741094c30f77ea933e7faa3977291d870 (patch) | |
tree | 39339e7eb0fafbddee3d33e26d77033b9f038b15 /org.eclipse.jgit | |
parent | 36536e3396ac02473f96c842a5188d7d47bf4aca (diff) | |
download | jgit-b3adaf7741094c30f77ea933e7faa3977291d870.tar.gz jgit-b3adaf7741094c30f77ea933e7faa3977291d870.zip |
PackOutputStream: Suppress Error Prone's ShortCircuitBoolean warning
The usage of non-short-circuit logic is intentional, per the inline
comment added in change Ib4b35e357 as a follow-up to Ie3761ffb4 which
was a previously rejected attempt to "fix" a similar warning that had
been raised by FindBugs.
Change-Id: I3f6729f954d45d30ce697356d2ab3cc877d3ad54
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackOutputStream.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackOutputStream.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackOutputStream.java index 7f38a7b51a..eb777be809 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackOutputStream.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackOutputStream.java @@ -187,6 +187,7 @@ public final class PackOutputStream extends OutputStream { * @throws java.io.IOException * the underlying stream refused to accept the header. */ + @SuppressWarnings("ShortCircuitBoolean") public final void writeHeader(ObjectToPack otp, long rawLength) throws IOException { ObjectToPack b = otp.getDeltaBase(); |