- use logger in AssetDataObject

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@10252 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 12 years ago
parent 94da7c8190
commit 7b17e38dc1
  1. 3
      sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java

@ -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;

Loading…
Cancel
Save