Skip to content
Snippets Groups Projects
Commit 419aadbb authored by Jens Steidl's avatar Jens Steidl :baby_chick:
Browse files

- fix: String comparison

parent 571f5641
No related branches found
No related tags found
No related merge requests found
......@@ -192,7 +192,7 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
log.warn("SLUBStoragePlugin failed to get pluginname, because it is empty. Possibly, there is no valid fixity type used or a CustomFixityPlugin missed");
log.warn("SLUBStoragePlugin.checkFixityByPlugin() trying to use fallback table to determine plugin name");
String algorithm = fixity.getAlgorithm();
if (algorithm == "SHA512") {
if (algorithm.equals("SHA512")) {
pluginname = "CustomFixitySHA512Plugin";
log.info("SLUBStoragePlugin.checkFixityByPlugin() pluginname=" + pluginname);
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment