Skip to content

Commit dcfeab8

Browse files
committed
ErrorProne noise reduction HashSet -> Set.
1 parent b41f239 commit dcfeab8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tls/src/main/java/org/bouncycastle/jsse/provider/JcaAlgorithmDecomposer.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class JcaAlgorithmDecomposer
1717

1818
public Set<String> decompose(String algorithm)
1919
{
20-
HashSet<String> result = new HashSet<String>();
20+
Set<String> result = new HashSet<String>();
2121

2222
if (JsseUtils.isNameSpecified(algorithm))
2323
{
@@ -47,7 +47,7 @@ static String decomposeDigestName(String algorithm)
4747

4848
static Set<String> decomposeName(String algorithm)
4949
{
50-
HashSet<String> result = new HashSet<String>();
50+
Set<String> result = new HashSet<String>();
5151

5252
if (JsseUtils.isNameSpecified(algorithm))
5353
{
@@ -67,7 +67,7 @@ static Set<String> decomposeName(String algorithm)
6767

6868
private static Map<String, String> createSHADigestMap()
6969
{
70-
HashMap<String, String> result = new HashMap<String, String>();
70+
Map<String, String> result = new HashMap<String, String>();
7171
result.put("SHA-1", "SHA1");
7272
result.put("SHA-224", "SHA224");
7373
result.put("SHA-256", "SHA256");
@@ -78,7 +78,7 @@ private static Map<String, String> createSHADigestMap()
7878
return result;
7979
}
8080

81-
private static void implDecompose(HashSet<String> result, String algorithm)
81+
private static void implDecompose(Set<String> result, String algorithm)
8282
{
8383
for (String section : algorithm.split("/"))
8484
{
@@ -95,7 +95,7 @@ private static void implDecompose(HashSet<String> result, String algorithm)
9595
}
9696
}
9797

98-
private static void includeBothIfEither(HashSet<String> elements, String a, String b)
98+
private static void includeBothIfEither(Set<String> elements, String a, String b)
9999
{
100100
if (elements.contains(a))
101101
{
@@ -107,7 +107,7 @@ else if (elements.contains(b))
107107
}
108108
}
109109

110-
private static void replaceFirstWithSecond(HashSet<String> elements, String a, String b)
110+
private static void replaceFirstWithSecond(Set<String> elements, String a, String b)
111111
{
112112
if (elements.remove(a))
113113
{

0 commit comments

Comments
 (0)