Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.equinox.security.tests/src/org/eclipse/equinox/internal/security/tests/storage/DetectPBECiphersTest.java7
1 files changed, 3 insertions, 4 deletions
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 a0a3bfa6e..82638f03a 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 @@ import org.junit.Test;
*/
public class DetectPBECiphersTest {
- @SuppressWarnings("rawtypes")
@Test
public void testPBEDetect() {
int cipherJVMCount = 0;
@@ -59,9 +58,9 @@ public class DetectPBECiphersTest {
}
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());
}
}

Back to the top