Issue #3372 make LocalizationStreamHandler thread safe
Change-Id: I208b66fbd2b0bfcd225c3df98f96bcdcf5cb9a88 Former-commit-id:801ed7154f
[formerly47bf21d7b5
] [formerly801ed7154f
[formerly47bf21d7b5
] [formerlyaaa0ed7ed7
[formerly 87d5faa03ea63759a6805ed063174fb09ca4800a]]] Former-commit-id:aaa0ed7ed7
Former-commit-id:e47111f601
[formerlyeeba10c11d
] Former-commit-id:a802b19c29
This commit is contained in:
parent
327f695d0c
commit
fa9cc74703
1 changed files with 3 additions and 2 deletions
|
@ -23,8 +23,8 @@ import java.io.File;
|
|||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import com.raytheon.edex.utility.ProtectedFiles;
|
||||
import com.raytheon.uf.common.auth.exception.AuthorizationException;
|
||||
|
@ -54,6 +54,7 @@ import com.raytheon.uf.edex.core.EDEXUtil;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Aug 11, 2010 mschenke Initial creation
|
||||
* Jul 14, 2014 3372 njensen fileMap is ConcurrentHashMap for thread safety
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -75,7 +76,7 @@ public class LocalizationStreamHandler
|
|||
}
|
||||
}
|
||||
|
||||
private Map<StreamPair, File> fileMap = new HashMap<StreamPair, File>();
|
||||
private Map<StreamPair, File> fileMap = new ConcurrentHashMap<StreamPair, File>();
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
|
|
Loading…
Add table
Reference in a new issue