Bug 388055 - Secure Storage uses PBE with MD5/DES as default algorithms
Remove suppress warnings and use isEmpty.
Change-Id: I053094d922efad9c48afa67146a3365e453d6d80
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/bundles/org.eclipse.equinox.security.tests/src/org/eclipse/equinox/internal/security/tests/storage/DetectPBECiphersTest.java b/bundles/org.eclipse.equinox.security.tests/src/org/eclipse/equinox/internal/security/tests/storage/DetectPBECiphersTest.java
index a0a3bfa..82638f0 100644
--- a/bundles/org.eclipse.equinox.security.tests/src/org/eclipse/equinox/internal/security/tests/storage/DetectPBECiphersTest.java
+++ b/bundles/org.eclipse.equinox.security.tests/src/org/eclipse/equinox/internal/security/tests/storage/DetectPBECiphersTest.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2018 Inno-Tec Innovative Technologies GmbH.
+ * Copyright (c) 2018 Inno-Tec Innovative Technologies GmbH. and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -37,7 +37,6 @@
*/
public class DetectPBECiphersTest {
- @SuppressWarnings("rawtypes")
@Test
public void testPBEDetect() {
int cipherJVMCount = 0;
@@ -59,9 +58,9 @@
}
JavaEncryption encryption = new JavaEncryption();
- HashMap detectedCiphers = encryption.detect();
+ HashMap<String, String> detectedCiphers = encryption.detect();
- assertTrue(detectedCiphers.size() > 0);
+ assertTrue(!detectedCiphers.isEmpty());
assertEquals(cipherJVMCount, detectedCiphers.size());
}
}