jgit/org.eclipse.jgit.test/tst/org/eclipse/jgit
David Pursehouse 2173f44158 UploadPackTest: Avoid unnecessarily boxing int into Integer
The statement:

  assertThat(recvStream.available(), is(0));

results in a warning from Eclipse:

  The expression of type int is boxed into Integer

because recvStream.available() returns int, but the hamcrest is()
method takes an Integer.

Replace it with the equivalent JUnit assertion.

Also remove the suppression of another similar warning and fix that
in the same way.

Change-Id: I6f18b304a540bcd0a10aec7d3abc7dc6f047fe80
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
2018-09-05 08:39:32 +09:00
..
api Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
attributes Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
diff Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
dircache Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
events Enable and fix 'Should be tagged with @Override' warning 2017-02-19 20:05:08 -04:00
fnmatch FileNameMatcherTest: Use Character.valueOf rather than new Character 2016-10-19 15:09:37 +09:00
gitrepo Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
ignore Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
indexdiff Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
internal/storage Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
junit Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
lib Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
merge Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
nls Enable and fix 'Should be tagged with @Override' warning 2017-02-19 20:05:08 -04:00
notes Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
patch Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
revplot Enable and fix warnings about redundant specification of type arguments 2017-02-20 22:47:23 +01:00
revwalk Parse signature of GPG-signed commits 2018-09-04 20:13:16 +02:00
storage/file Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
submodule SubmoduleDeinitTest fails on Windows 2018-08-19 20:53:31 +02:00
symlinks Fix remaining javadoc errors raised by doclint 2017-12-21 02:42:14 +01:00
test/resources ObjectDirectory: Add pack directory getter 2017-11-14 10:08:42 -05:00
transport UploadPackTest: Avoid unnecessarily boxing int into Integer 2018-09-05 08:39:32 +09:00
treewalk Deprecate Constants.CHARSET in favor of StandardCharsets.UTF_8 2018-09-04 10:53:10 +09:00
util Parse signature of GPG-signed commits 2018-09-04 20:13:16 +02:00