diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-02-08 14:44:26 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-02-10 19:12:27 +0100 |
commit | abb950335228f128939a69a52bf090782623459f (patch) | |
tree | 770c2edc95092a586f39ac3fb74364bcc40dc6da /sonar-home/src | |
parent | 014f0e235e22b304cc6d8e7b98363af23f52aa4c (diff) | |
download | sonarqube-abb950335228f128939a69a52bf090782623459f.tar.gz sonarqube-abb950335228f128939a69a52bf090782623459f.zip |
Remove unused import
Diffstat (limited to 'sonar-home/src')
-rw-r--r-- | sonar-home/src/main/java/org/sonar/home/cache/FileHashes.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sonar-home/src/main/java/org/sonar/home/cache/FileHashes.java b/sonar-home/src/main/java/org/sonar/home/cache/FileHashes.java index 28066cf5b94..9a44ae6fa58 100644 --- a/sonar-home/src/main/java/org/sonar/home/cache/FileHashes.java +++ b/sonar-home/src/main/java/org/sonar/home/cache/FileHashes.java @@ -26,7 +26,6 @@ import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.math.BigInteger; -import java.security.DigestInputStream; import java.security.MessageDigest; /** @@ -50,7 +49,6 @@ public class FileHashes { * Computes the hash of given stream. The stream is closed by this method. */ public String of(InputStream input) { - DigestInputStream digestInputStream = null; try { MessageDigest digest = MessageDigest.getInstance("MD5"); byte[] hash = digest(input, digest); @@ -60,7 +58,6 @@ public class FileHashes { throw new IllegalStateException("Fail to compute hash", e); } finally { - IOUtils.closeQuietly(digestInputStream); IOUtils.closeQuietly(input); } } |