fix #433 : add volatile
This commit is contained in:
parent
200d0453a8
commit
a020a19cf9
3 changed files with 6 additions and 6 deletions
|
@ -82,9 +82,9 @@ public class DataConfig extends BsDataConfig implements CrawlingConfig {
|
|||
|
||||
private Map<String, String> handlerScriptMap;
|
||||
|
||||
private List<LabelType> labelTypeList;
|
||||
private volatile List<LabelType> labelTypeList;
|
||||
|
||||
private List<RoleType> roleTypeList;
|
||||
private volatile List<RoleType> roleTypeList;
|
||||
|
||||
public DataConfig() {
|
||||
super();
|
||||
|
|
|
@ -57,9 +57,9 @@ public class FileConfig extends BsFileConfig implements CrawlingConfig {
|
|||
|
||||
protected volatile Map<ConfigName, Map<String, String>> configParameterMap;
|
||||
|
||||
private List<LabelType> labelTypeList;
|
||||
private volatile List<LabelType> labelTypeList;
|
||||
|
||||
private List<RoleType> roleTypeList;
|
||||
private volatile List<RoleType> roleTypeList;
|
||||
|
||||
public FileConfig() {
|
||||
super();
|
||||
|
|
|
@ -57,9 +57,9 @@ public class WebConfig extends BsWebConfig implements CrawlingConfig {
|
|||
|
||||
protected volatile Map<ConfigName, Map<String, String>> configParameterMap;
|
||||
|
||||
private List<LabelType> labelTypeList;
|
||||
private volatile List<LabelType> labelTypeList;
|
||||
|
||||
private List<RoleType> roleTypeList;
|
||||
private volatile List<RoleType> roleTypeList;
|
||||
|
||||
public WebConfig() {
|
||||
super();
|
||||
|
|
Loading…
Add table
Reference in a new issue