8259069: Fields could be final

Reviewed-by: wetmore
This commit is contained in:
Xue-Lei Andrew Fan 2021-01-05 00:11:55 +00:00
parent f0aae81ed5
commit 2499ac3db5
13 changed files with 33 additions and 32 deletions

View file

@ -411,7 +411,7 @@ enum SSLCipher {
private static final HashMap<String, Long> cipherLimits = new HashMap<>();
// Keywords found on the jdk.tls.keyLimits security property.
final static String tag[] = {"KEYUPDATE"};
final static String[] tag = {"KEYUPDATE"};
static {
final long max = 4611686018427387904L; // 2^62
@ -424,12 +424,12 @@ enum SSLCipher {
});
if (prop != null) {
String propvalue[] = prop.split(",");
String[] propvalue = prop.split(",");
for (String entry : propvalue) {
int index;
// If this is not a UsageLimit, goto to next entry.
String values[] = entry.trim().toUpperCase().split(" ");
String[] values = entry.trim().toUpperCase().split(" ");
if (values[1].contains(tag[0])) {
index = 0;