WeakRefCloneAssetCache: remove useless "synchronized" (the map is already thread-safe)

experimental
shadowislord 10 years ago
parent 06408410cf
commit a3467def1e
  1. 6
      jme3-core/src/main/java/com/jme3/asset/cache/WeakRefCloneAssetCache.java

@ -155,11 +155,7 @@ public class WeakRefCloneAssetCache implements AssetCache {
}
public <T> T getFromCache(AssetKey<T> key) {
AssetRef smartInfo;
synchronized (smartCache){
smartInfo = smartCache.get(key);
}
AssetRef smartInfo = smartCache.get(key);
if (smartInfo == null) {
return null;
} else {

Loading…
Cancel
Save