Remove superfluous casts

This commit is contained in:
jvoisin
2019-06-08 16:24:00 +02:00
parent 3202a1086d
commit 643be3930f
5 changed files with 8 additions and 8 deletions
@@ -65,7 +65,7 @@ public class RangeOutputStreamTestCase extends TestCase {
private void doTestWrap(int first, Integer last, int sourceSize, int bufferSize) throws Exception {
byte[] source = createSource(sourceSize);
ByteArrayOutputStream out = new ByteArrayOutputStream();
OutputStream rangeOut = RangeOutputStream.wrap(out, new HttpRange((long) first, last == null ? null : last.longValue()));
OutputStream rangeOut = RangeOutputStream.wrap(out, new HttpRange(first, last == null ? null : last.longValue()));
copy(source, rangeOut, bufferSize);
verify(out.toByteArray(), first, last, sourceSize);
}