8251548: Remove unnecessary explicit initialization of volatile variables in security-libs code

Reviewed-by: mullan
This commit is contained in:
Sergey Tsypanov 2020-09-18 21:26:59 +00:00 committed by Weijun Wang
parent d35b117956
commit f55dd9d40e
8 changed files with 17 additions and 17 deletions

View file

@ -219,7 +219,7 @@ public class KeyStore {
private KeyStoreSpi keyStoreSpi;
// Has this keystore been initialized (loaded)?
private boolean initialized = false;
private boolean initialized;
/**
* A marker interface for {@code KeyStore}
@ -264,7 +264,7 @@ public class KeyStore {
private final char[] password;
private final String protectionAlgorithm;
private final AlgorithmParameterSpec protectionParameters;
private volatile boolean destroyed = false;
private volatile boolean destroyed;
/**
* Creates a password parameter.

View file

@ -206,5 +206,5 @@ public abstract class ListResourceBundle extends ResourceBundle {
lookup = temp;
}
private volatile Map<String,Object> lookup = null;
private volatile Map<String,Object> lookup;
}