fix some code smells reported by SonarQube

This commit is contained in:
Sebastian Sdorra
2019-08-21 16:46:50 +02:00
parent 0ce9aeb400
commit 6351e39c12
3 changed files with 4 additions and 5 deletions

View File

@@ -26,6 +26,7 @@ class PluginInstaller {
this.client = client;
}
@SuppressWarnings("squid:S4790") // hashing should be safe
public PendingPluginInstallation install(AvailablePlugin plugin) {
Path file = null;
try (HashingInputStream input = new HashingInputStream(Hashing.sha256(), download(plugin))) {