Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2018-12-18 10:59:41 -0500
committerAlexander Kurtakov2018-12-18 10:59:41 -0500
commit5fdc1f89197f05037197a9115dd1114b40ceeedf (patch)
tree3652f6ea27fac55247b7fbb3b4e5435e8eee7019
parent88ccf54275888072aa8e95686d3c3caa3848bc58 (diff)
downloadrt.equinox.bundles-5fdc1f89197f05037197a9115dd1114b40ceeedf.tar.gz
rt.equinox.bundles-5fdc1f89197f05037197a9115dd1114b40ceeedf.tar.xz
rt.equinox.bundles-5fdc1f89197f05037197a9115dd1114b40ceeedf.zip
Remove suppress warnings and use isEmpty. Change-Id: I053094d922efad9c48afa67146a3365e453d6d80 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
-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 a0a3bfa6..82638f03 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