refactor with synchronize
This commit is contained in:
parent
cb69344688
commit
1cc120e690
|
@ -41,7 +41,7 @@ public class PageResultCollector extends AbstractDataCollector {
|
|||
}
|
||||
}
|
||||
|
||||
private PageBrief guardTheValueOfThePageIdExists(int pageId) {
|
||||
private synchronized PageBrief guardTheValueOfThePageIdExists(int pageId) {
|
||||
if (!this.getPageBriefMap().containsKey(pageId)) {
|
||||
this.getPageBriefMap().put(pageId, new PageBrief());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue