Mercurial > hg > monetdb-java
changeset 835:071be9a628e8 monetdbs
Suppress warning about unchecked conversion
author | Joeri van Ruth <joeri.van.ruth@monetdbsolutions.com> |
---|---|
date | Fri, 15 Dec 2023 10:51:19 +0100 (16 months ago) |
parents | 5aa19bbed0d6 |
children | aad275e042b2 |
files | src/main/java/org/monetdb/mcl/net/MapiSocket.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/org/monetdb/mcl/net/MapiSocket.java +++ b/src/main/java/org/monetdb/mcl/net/MapiSocket.java @@ -506,9 +506,9 @@ public final class MapiSocket { StringBuilder output = new StringBuilder(10 + maxHashLength / 4); MessageDigest passwordDigest = pickBestAlgorithm(Collections.singleton(passwordAlgo), output); - Set<String> algoSet = new HashSet(Arrays.asList(serverSupportedAlgos.split(","))); + Set<String> algoSet = new HashSet<>(Arrays.asList(serverSupportedAlgos.split(","))); if (!configuredHashes.isEmpty()) { - Set<String> keep = new HashSet(Arrays.asList(configuredHashes.toUpperCase().split("[, ]"))); + Set<String> keep = new HashSet<>(Arrays.asList(configuredHashes.toUpperCase().split("[, ]"))); algoSet.retainAll(keep); if (algoSet.isEmpty()) { throw new MCLException("None of the hash algorithms <" + configuredHashes + "> are supported, server only supports <" + serverSupportedAlgos + ">");