Skip to content

Commit

Permalink
Merge pull request #16360 from iterate-ch/dependabot/maven/commons-io…
Browse files Browse the repository at this point in the history
…-commons-io-2.17.0

Bump commons-io:commons-io from 2.16.1 to 2.17.0
  • Loading branch information
dkocher authored Nov 7, 2024
2 parents 5e1d091 + 81d1e02 commit f1306b8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected byte[] digest(final InputStream in, final MessageDigest md, final Stre
try {
byte[] buffer = new byte[16384];
int bytesRead;
while((bytesRead = in.read(buffer, 0, buffer.length)) != -1) {
while((bytesRead = in.read(buffer, 0, buffer.length)) != IOUtils.EOF) {
cancelation.validate();
md.update(buffer, 0, bytesRead);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ public class DisabledChecksumComputeTest {
@Test
public void compute() throws Exception {
final NullInputStream in = new NullInputStream(0L);
new DisabledChecksumCompute().compute(in, new TransferStatus());
assertEquals(-1, in.read());
assertEquals(-1, in.read());
assertEquals(Checksum.NONE, new DisabledChecksumCompute().compute(in, new TransferStatus()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ public Directory withWriter(final Write writer) {
assertNotEquals(compute.compute(new NullInputStream(1025L), new TransferStatus().withLength(1025L).withHeader(header).withNonces(nonces)),
compute.compute(new NullInputStream(1025L), new TransferStatus().withLength(1025L).withHeader(header).withNonces(nonces)));
assertNotNull(compute.compute(new NullInputStream(0L), new TransferStatus().withLength(0L).withHeader(header).withNonces(nonces)).hash);
final NullInputStream input = new NullInputStream(0L);
assertEquals(compute.compute(input, new TransferStatus().withHeader(header).withNonces(nonces)),
compute.compute(input, new TransferStatus().withHeader(header).withNonces(nonces)));
assertEquals(compute.compute(new NullInputStream(0L), new TransferStatus().withHeader(header).withNonces(nonces)),
compute.compute(new NullInputStream(0L), new TransferStatus().withHeader(header).withNonces(nonces)));
assertNotEquals(compute.compute(new NullInputStream(0L), new TransferStatus().withHeader(header).withNonces(nonces)),
sha.compute(new NullInputStream(0L), new TransferStatus()));
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.16.1</version>
<version>2.17.0</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
Expand Down

0 comments on commit f1306b8

Please sign in to comment.