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

Fixed #250 #261

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Fixed #250 #261

merged 1 commit into from
Mar 13, 2024

Conversation

carlosjepard
Copy link
Contributor

No description provided.

@@ -48,6 +48,7 @@ public abstract class IP implements IPInterface {
private List<IPFile> documentation;

private Map<String, ZipEntryInfo> zipEntries;
private String checksumAlgorithm;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocVariableCheck> reported by reviewdog 🐶
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());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
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();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
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();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.coding.FinalLocalVariableCheck> reported by reviewdog 🐶
Variable 'checksumType' should be declared final.

@hmiguim hmiguim merged commit a08f569 into development Mar 13, 2024
3 checks passed
@hmiguim hmiguim deleted the cafonso-dev3 branch March 13, 2024 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants