refactor with synchronize

This commit is contained in:
coderfengyun 2014-01-03 16:28:39 +08:00
parent cb69344688
commit 1cc120e690
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}