diff options
author | Alexander Kurtakov | 2018-12-18 15:59:41 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2018-12-18 15:59:41 +0000 |
commit | 5fdc1f89197f05037197a9115dd1114b40ceeedf (patch) | |
tree | 3652f6ea27fac55247b7fbb3b4e5435e8eee7019 | |
parent | 88ccf54275888072aa8e95686d3c3caa3848bc58 (diff) | |
download | rt.equinox.bundles-5fdc1f89197f05037197a9115dd1114b40ceeedf.tar.gz rt.equinox.bundles-5fdc1f89197f05037197a9115dd1114b40ceeedf.tar.xz rt.equinox.bundles-5fdc1f89197f05037197a9115dd1114b40ceeedf.zip |
Bug 388055 - Secure Storage uses PBE with MD5/DES as default algorithmsY20190102-2200Y20181226-2200Y20181219-2200I20190103-1800I20190102-1800I20190101-1800I20181231-1800I20181230-1800I20181229-1800I20181228-1800I20181227-1800I20181226-1800I20181225-1800I20181224-1800I20181223-1800I20181222-1800I20181221-1800I20181220-1800I20181219-1800I20181218-1800
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.java | 7 |
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()); } } |