- use logger in AssetDataObject

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10252 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2013-01-30 19:01:33 +00:00
parent 94da7c8190
commit 7b17e38dc1

View File

@ -36,6 +36,7 @@ import com.jme3.asset.AssetKey;
import com.jme3.export.Savable; import com.jme3.export.Savable;
import com.jme3.export.binary.BinaryExporter; import com.jme3.export.binary.BinaryExporter;
import com.jme3.gde.core.scene.SceneApplication; import com.jme3.gde.core.scene.SceneApplication;
import com.jme3.gde.core.util.notify.NotifyUtil;
import java.io.IOException; import java.io.IOException;
import java.io.OutputStream; import java.io.OutputStream;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
@ -192,7 +193,7 @@ public class AssetDataObject extends MultiDataObject {
public synchronized void saveAsset() throws IOException { public synchronized void saveAsset() throws IOException {
if (savable == null) { if (savable == null) {
Logger.getLogger(AssetDataObject.class.getName()).log(Level.WARNING, "Trying to write asset failed, asset data null!\nImport failed?"); logger.log(Level.WARNING, "Trying to write asset failed, asset data null!\nImport failed?");
return; return;
} }
final Savable savable = this.savable; final Savable savable = this.savable;