Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/checksum/MessageDigestProcessingStep.java')
-rw-r--r--bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/checksum/MessageDigestProcessingStep.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/checksum/MessageDigestProcessingStep.java b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/checksum/MessageDigestProcessingStep.java
index abf5a264e..ba25d4ff3 100644
--- a/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/checksum/MessageDigestProcessingStep.java
+++ b/bundles/org.eclipse.equinox.p2.artifact.repository/src/org/eclipse/equinox/internal/p2/artifact/processors/checksum/MessageDigestProcessingStep.java
@@ -29,8 +29,7 @@ public abstract class MessageDigestProcessingStep extends ProcessingStep {
private ByteBuffer buffer = ByteBuffer.allocate(BUFFER_SIZE);
@Override
- // TODO template method, should be final but MD5Verifier prevents this
- public void write(int b) throws IOException {
+ final public void write(int b) throws IOException {
getDestination().write(b);
boolean isBufferFull = buffer.remaining() == 0;
@@ -52,8 +51,7 @@ public abstract class MessageDigestProcessingStep extends ProcessingStep {
}
@Override
- // TODO should be final but MD5Verifier prevents this
- public void close() throws IOException {
+ final public void close() throws IOException {
processBufferredBytes();
String digestString = digest();
onClose(digestString);

Back to the top