]> source.dussan.org Git - jgit.git/commit
TransportHttp: Fix comparison of size with ">= 0" 80/143480/1
authorDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 7 Jun 2019 01:57:15 +0000 (10:57 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Fri, 7 Jun 2019 01:57:15 +0000 (10:57 +0900)
commit9dc1ddf324c0f5ff37cd3ff47c8b16595012004b
treed5e9435103f1118be2ec8ea4a64bc57c71405372
parent6518d63317a8fda856a801cef71db9de1b1052fb
TransportHttp: Fix comparison of size with ">= 0"

Error Prone reports:

  [SizeGreaterThanOrEqualsZero] Comparison of a size >= 0 is always true,
  did you intend to check for non-emptiness?

  see https://errorprone.info/bugpattern/SizeGreaterThanOrEqualsZero

Change-Id: Ie964771cacca4b15569eb45f6e273ad2a7e2e49c
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit/src/org/eclipse/jgit/transport/TransportHttp.java