From 5fdc1f89197f05037197a9115dd1114b40ceeedf Mon Sep 17 00:00:00 2001 From: Alexander Kurtakov Date: Tue, 18 Dec 2018 17:59:41 +0200 Subject: 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 --- .../internal/security/tests/storage/DetectPBECiphersTest.java | 7 +++---- 1 file 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 detectedCiphers = encryption.detect(); - assertTrue(detectedCiphers.size() > 0); + assertTrue(!detectedCiphers.isEmpty()); assertEquals(cipherJVMCount, detectedCiphers.size()); } } -- cgit v1.2.3