Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2020-10-13 04:53:06 -0400
committerAlexander Kurtakov2020-10-13 04:53:06 -0400
commit8018c1d932d000e8930de732368a3510faca5a51 (patch)
tree26dc86c431367b27271b41784fc6d60ce2a12ed1
parentf62032046aa6dbea8f9d916c5eb05447cab82d5d (diff)
downloadrt.equinox.p2-8018c1d932d000e8930de732368a3510faca5a51.tar.gz
rt.equinox.p2-8018c1d932d000e8930de732368a3510faca5a51.tar.xz
rt.equinox.p2-8018c1d932d000e8930de732368a3510faca5a51.zip
Change-Id: I32c89ba1f46a2ad9be9faa9e84e8858f47bb1ba3 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-rw-r--r--bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/ChecksumHelper.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/ChecksumHelper.java b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/ChecksumHelper.java
index 6fb253ae7..825d5f34d 100644
--- a/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/ChecksumHelper.java
+++ b/bundles/org.eclipse.equinox.p2.repository/src/org/eclipse/equinox/internal/p2/repository/helpers/ChecksumHelper.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2015, 2018 Mykola Nikishov
+ * Copyright (c) 2015, 2020 Mykola Nikishov
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -46,10 +46,7 @@ public class ChecksumHelper {
.substring(property.length()) // ".sha3"
.substring(1); // "sha3"
String checksumValue = Objects.requireNonNull(p.getValue());
- String duplicatedChecksum = checksumsByAlgo.put(checksumAlgorithmId, checksumValue);
- if (duplicatedChecksum != null)
- // should never happen - duplicated checksum
- ;
+ checksumsByAlgo.put(checksumAlgorithmId, checksumValue);
}
}

Back to the top