From fd3b918a11dd5eac7f663d37f728485d0e4b80cc Mon Sep 17 00:00:00 2001 From: Normen Hansen Date: Sun, 25 Jan 2015 23:56:07 +0100 Subject: [PATCH] - suppress more warnings in SDK --- sdk/jme3-core/src/com/jme3/gde/core/scene/NodeSyncAppState.java | 1 + sdk/jme3-core/src/com/jme3/gde/core/scene/SceneApplication.java | 2 +- .../jme3/gde/core/sceneexplorer/SceneExplorerTopComponent.java | 1 + .../com/jme3/gde/core/sceneexplorer/nodes/JmeAmbientLight.java | 1 + .../com/jme3/gde/core/sceneexplorer/nodes/JmeAnimControl.java | 1 + .../src/com/jme3/gde/core/sceneexplorer/nodes/JmeAnimation.java | 1 + .../com/jme3/gde/core/sceneexplorer/nodes/JmeAssetLinkNode.java | 1 + .../src/com/jme3/gde/core/sceneexplorer/nodes/JmeAudioNode.java | 1 + .../com/jme3/gde/core/sceneexplorer/nodes/JmeBitmapText.java | 1 + .../src/com/jme3/gde/core/sceneexplorer/nodes/JmeBone.java | 1 + .../src/com/jme3/gde/core/sceneexplorer/nodes/JmeLight.java | 1 + .../jme3/gde/core/sceneexplorer/nodes/JmeSkeletonControl.java | 1 + .../gde/core/sceneexplorer/nodes/actions/ChannelDialog.java | 2 +- 13 files changed, 13 insertions(+), 2 deletions(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/scene/NodeSyncAppState.java b/sdk/jme3-core/src/com/jme3/gde/core/scene/NodeSyncAppState.java index 9ce81dfa9..5188b2131 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/scene/NodeSyncAppState.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/scene/NodeSyncAppState.java @@ -48,6 +48,7 @@ import org.openide.util.Utilities; * * @author normenhansen */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class NodeSyncAppState extends AbstractAppState implements LookupListener { private final List newNodes = Collections.synchronizedList(new LinkedList()); diff --git a/sdk/jme3-core/src/com/jme3/gde/core/scene/SceneApplication.java b/sdk/jme3-core/src/com/jme3/gde/core/scene/SceneApplication.java index 20ea60bb2..b19da0729 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/scene/SceneApplication.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/scene/SceneApplication.java @@ -85,7 +85,7 @@ import org.openide.util.lookup.Lookups; * * @author normenhansen */ -@SuppressWarnings("unchecked") +@SuppressWarnings({"unchecked", "rawtypes"}) public class SceneApplication extends Application implements LookupProvider { private static final Logger logger = Logger.getLogger(SceneApplication.class.getName()); diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/SceneExplorerTopComponent.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/SceneExplorerTopComponent.java index 7994b1954..50c04fb05 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/SceneExplorerTopComponent.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/SceneExplorerTopComponent.java @@ -71,6 +71,7 @@ import org.openide.windows.WindowManager; */ @ConvertAsProperties(dtd = "-//com.jme3.gde.core.sceneexplorer//SceneExplorer//EN", autostore = false) +@SuppressWarnings({"unchecked", "rawtypes"}) public final class SceneExplorerTopComponent extends TopComponent implements ExplorerManager.Provider, SceneListener/*, LookupListener */ { private static final Logger logger = Logger.getLogger(SceneExplorerTopComponent.class.getName()); diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAmbientLight.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAmbientLight.java index 107c33f5f..828a661c7 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAmbientLight.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAmbientLight.java @@ -43,6 +43,7 @@ import org.openide.nodes.Sheet; * @author normenhansen */ @org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class) +@SuppressWarnings({"unchecked", "rawtypes"}) public class JmeAmbientLight extends JmeLight{ AmbientLight AmbientLight; diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAnimControl.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAnimControl.java index 8838ac1b0..f76c24c87 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAnimControl.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAnimControl.java @@ -56,6 +56,7 @@ import org.openide.util.actions.SystemAction; * @author normenhansen */ @org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class) +@SuppressWarnings({"unchecked", "rawtypes"}) public class JmeAnimControl extends AbstractSceneExplorerNode { private AnimControl animControl; diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAnimation.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAnimation.java index 74275cae7..4a7a0a46a 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAnimation.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAnimation.java @@ -67,6 +67,7 @@ import org.openide.util.actions.SystemAction; * @author nehon */ @org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class) +@SuppressWarnings({"unchecked", "rawtypes"}) public class JmeAnimation extends AbstractSceneExplorerNode { private Animation animation; diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAssetLinkNode.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAssetLinkNode.java index 1e3031199..4c9517c24 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAssetLinkNode.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAssetLinkNode.java @@ -64,6 +64,7 @@ import org.openide.util.actions.SystemAction; * @author normenhansen */ @org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class) +@SuppressWarnings({"unchecked", "rawtypes"}) public class JmeAssetLinkNode extends JmeNode { private static Image smallImage = IconList.link.getImage(); diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAudioNode.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAudioNode.java index edd5d84c3..07a1513d4 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAudioNode.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeAudioNode.java @@ -46,6 +46,7 @@ import org.openide.nodes.Sheet; * @author normenhansen */ @org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class) +@SuppressWarnings({"unchecked", "rawtypes"}) public class JmeAudioNode extends JmeNode { private static Image smallImage = IconList.sound.getImage(); diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeBitmapText.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeBitmapText.java index 58767da5f..a65c0dd4b 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeBitmapText.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeBitmapText.java @@ -44,6 +44,7 @@ import org.openide.nodes.Sheet; * @author normenhansen */ @org.openide.util.lookup.ServiceProvider(service=SceneExplorerNode.class) +@SuppressWarnings({"unchecked", "rawtypes"}) public class JmeBitmapText extends JmeNode { private static Image smallImage = IconList.font.getImage(); diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeBone.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeBone.java index df0b8aa69..7dba6afe7 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeBone.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeBone.java @@ -51,6 +51,7 @@ import org.openide.util.Exceptions; * @author normenhansen */ @org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class) +@SuppressWarnings({"unchecked", "rawtypes"}) public class JmeBone extends AbstractSceneExplorerNode { private static Image smallImage = IconList.bone.getImage(); diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeLight.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeLight.java index 675ffdf7a..673ef189c 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeLight.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeLight.java @@ -53,6 +53,7 @@ import org.openide.util.actions.SystemAction; * @author normenhansen */ @org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class) +@SuppressWarnings({"unchecked", "rawtypes"}) public class JmeLight extends AbstractSceneExplorerNode { private Spatial spatial; diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeSkeletonControl.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeSkeletonControl.java index d7607e188..53a40f106 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeSkeletonControl.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeSkeletonControl.java @@ -52,6 +52,7 @@ import org.openide.util.actions.SystemAction; * @author normenhansen */ @org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class) +@SuppressWarnings({"unchecked", "rawtypes"}) public class JmeSkeletonControl extends AbstractSceneExplorerNode { private SkeletonControl skeletonControl; diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/ChannelDialog.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/ChannelDialog.java index 69ee05379..65aeb5228 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/ChannelDialog.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/ChannelDialog.java @@ -39,7 +39,7 @@ import com.jme3.gde.core.sceneexplorer.nodes.JmeAnimation; * @author Nehon */ - +@SuppressWarnings({"unchecked", "rawtypes"}) public class ChannelDialog extends javax.swing.JDialog { JmeAnimation jmeAnim;