]> source.dussan.org Git - jgit.git/commitdiff
PackOutputStream: Suppress Error Prone's ShortCircuitBoolean warning 75/130275/4
authorDavid Pursehouse <david.pursehouse@gmail.com>
Tue, 2 Oct 2018 04:06:24 +0000 (13:06 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Wed, 10 Oct 2018 09:30:25 +0000 (11:30 +0200)
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>
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackOutputStream.java

index 7f38a7b51ada471c403bcd31396f21009cac5836..eb777be809ce5ea059210bb4868105ae06c0ff8b 100644 (file)
@@ -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();