-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fixed #250 #261
Fixed #250 #261
Conversation
@@ -48,6 +48,7 @@ public abstract class IP implements IPInterface { | |||
private List<IPFile> documentation; | |||
|
|||
private Map<String, ZipEntryInfo> zipEntries; | |||
private String checksumAlgorithm; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing a Javadoc comment.
@@ -150,8 +151,8 @@ public static void zip(Map<String, ZipEntryInfo> files, OutputStream out, SIP si | |||
} | |||
|
|||
LOGGER.debug("Done zipping file"); | |||
String checksum = checksums.get(IPConstants.CHECKSUM_ALGORITHM); | |||
String checksumType = IPConstants.CHECKSUM_ALGORITHM; | |||
String checksum = checksums.get(sip.getChecksum()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable 'checksum' should be declared final.
String checksum = checksums.get(IPConstants.CHECKSUM_ALGORITHM); | ||
String checksumType = IPConstants.CHECKSUM_ALGORITHM; | ||
String checksum = checksums.get(sip.getChecksum()); | ||
String checksumType = sip.getChecksum(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable 'checksumType' should be declared final.
@@ -69,7 +69,7 @@ public void prepareEntryforZipping() throws IPException { | |||
if (!rootMETS && fileType != null) { | |||
METSUtils.setFileBasicInformation(LOGGER, getFilePath(), fileType); | |||
|
|||
String checksumType = IPConstants.CHECKSUM_ALGORITHM; | |||
String checksumType = this.getChecksum(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable 'checksumType' should be declared final.
No description provided.