Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump commons-io:commons-io from 2.6 to 2.7 in /pass-deposit-services #76

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ public ContentLengthObserver(ResourceBuilder builder) {
}

@Override
void data(int pByte) throws IOException {
public void data(int pByte) throws IOException {
length++;
}

@Override
void data(byte[] pBuffer, int pOffset, int pLength) throws IOException {
public void data(byte[] pBuffer, int pOffset, int pLength) throws IOException {
length += pLength;
}

@Override
void finished() throws IOException {
public void finished() throws IOException {
if (!isFinished()) {
builder.sizeBytes(this.length);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ public DigestObserver(ResourceBuilder builder, Checksum.OPTS algorithm) {
}

@Override
void data(int pByte) throws IOException {
public void data(int pByte) throws IOException {
digest.update((byte) pByte);
}

@Override
void data(byte[] pBuffer, int pOffset, int pLength) throws IOException {
public void data(byte[] pBuffer, int pOffset, int pLength) throws IOException {
digest.update(pBuffer, pOffset, pLength);
}

@Override
void finished() throws IOException {
public void finished() throws IOException {
if (!isFinished()) {
byte[] value = this.digest.digest();
builder.checksum(new ChecksumImpl(algo, value, getEncoder().encodeToString(value), encodeHexString(value)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public boolean isFinished() {
}

@Override
void finished() throws IOException {
public void finished() throws IOException {
this.finished = true;
}
}
2 changes: 1 addition & 1 deletion pass-deposit-services/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<logback-classic.version>1.4.12</logback-classic.version>
<commons-net.version>3.9.0</commons-net.version>
<commons-compress.version>1.21</commons-compress.version>
<commons-io.version>2.6</commons-io.version>
<commons-io.version>2.7</commons-io.version>
<guava.version>23.5-jre</guava.version>
<xmlunit.version>2.3.0</xmlunit.version>
<xstream.version>1.4.20</xstream.version>
Expand Down
Loading