Mark `staticCache' final

This fixes a warning in NetBeans IDE about synchronizing on a non-final
field.
This commit is contained in:
Daniel Trebbien 2017-07-28 19:32:59 -07:00 committed by Colm O hEigeartaigh
parent 6d36c490e5
commit 7480c66031
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ import org.slf4j.LoggerFactory;
public class PropertiesLoader {
private static final Logger LOG = LoggerFactory.getLogger(PropertiesLoader.class);
static Map<FileNameKey, ReloadableProperties> staticCache = new HashMap<FileNameKey, ReloadableProperties>();
static final Map<FileNameKey, ReloadableProperties> staticCache = new HashMap<FileNameKey, ReloadableProperties>();
protected boolean debug;
public void init(Map options) {