removed use of autoboxing.
@@ -890,7 +890,7 @@ public static void addIfSupported(Vector supportedGroups, TlsCrypto crypto, int
{
if (crypto.hasNamedGroup(namedGroup))
{
- supportedGroups.addElement(Integers.valueOf(namedGroup));
+ supportedGroups.addElement(namedGroup);
}
}
@@ -904,11 +904,10 @@ public static void addIfSupported(Vector supportedGroups, TlsCrypto crypto, int[
public static boolean addToSet(Vector s, int i)
{
- Integer v = Integers.valueOf(i);
- boolean result = !s.contains(v);
+ boolean result = !s.contains(i);
if (result)
{
- s.addElement(v);
+ s.addElement(i);
}
return result;
}
@@ -2408,7 +2407,7 @@ public static Vector getKeyExchangeAlgorithms(int[] cipherSuites)
{
addToSet(result, getKeyExchangeAlgorithm(cipherSuites[i]));
}
- result.removeElement(Integers.valueOf(-1));
+ result.removeElement(-1);
}
return result;
}
