Java static and thread safety or what to do
- by Parhs
I am extending a library to do some work for me. Here is the code:
public static synchronized String decompile(String source, int flags,UintMap properties,Map<String,String> namesMap)
{
Decompiler.namesMap=namesMap;
String decompiled=decompile(source,flags,properties);
Decompiler.namesMap=null;
return…