- make ClassLoader list in AssetManager a syncronized list

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8605 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 13 years ago
parent 200801cd4e
commit c0695b0a3a
  1. 3
      engine/src/desktop/com/jme3/asset/DesktopAssetManager.java

@ -46,6 +46,7 @@ import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
@ -100,7 +101,7 @@ public class DesktopAssetManager implements AssetManager {
public void addClassLoader(ClassLoader loader){
if(classLoaders == null)
classLoaders = new ArrayList<ClassLoader>();
classLoaders = Collections.synchronizedList(new ArrayList<ClassLoader>());
classLoaders.add(loader);
}

Loading…
Cancel
Save