Add findsecbugs plugin to spotbugs.

And suppress existing warnings. We should clean some of them up, but that's for different PRs.
This commit is contained in:
Jeff Thompson committed 2020-01-23 14:53:53 -07:00
1 parent 30dbf728ec
commit c76ee59810
21 files changed
+63 -2

No files matched your search

+2
View File
@@ -596,6 +596,8 @@ public class Util {
* @see DigestUtils#md5Hex(InputStream)
*/
@Nonnull
@SuppressFBWarnings(value = "WEAK_MESSAGE_DIGEST_MD5", justification =
"This method should only be used for non-security applications where their weakness is not a problem.")
public static String getDigestOf(@Nonnull InputStream source) throws IOException {
try {
MessageDigest md5 = MessageDigest.getInstance("MD5");