make SigarProxyCached.invoke synchronized
This commit is contained in:
parent
1c87169bdb
commit
bf361a1732
|
@ -123,7 +123,7 @@ public class SigarProxyCache
|
||||||
* The java.lang.reflect.InvocationHandler used by the Proxy.
|
* The java.lang.reflect.InvocationHandler used by the Proxy.
|
||||||
* This method handles caching of all Sigar type objects.
|
* This method handles caching of all Sigar type objects.
|
||||||
*/
|
*/
|
||||||
public Object invoke(Object proxy, Method method, Object[] args)
|
public synchronized Object invoke(Object proxy, Method method, Object[] args)
|
||||||
throws SigarException, SigarNotImplementedException {
|
throws SigarException, SigarNotImplementedException {
|
||||||
|
|
||||||
SigarCacheObject cacheVal = null;
|
SigarCacheObject cacheVal = null;
|
||||||
|
|
Loading…
Reference in New Issue