Remove volatile key word as we do not need to syncronise access for now.
package com.quorum.tessera.core.config;
import com.quorum.tessera.config.Config;
+import java.util.Objects;
public class ConfigServiceImpl implements ConfigService {
- private volatile Config config;
+ private final Config config;
public ConfigServiceImpl(Config initialConfig) {
- this.config = initialConfig;
+ this.config = Objects.requireNonNull(initialConfig);
}
@Override
