From cd7cedbda9e9f79abf7636bbcb791336b7a0e95e Mon Sep 17 00:00:00 2001 From: Normen Hansen Date: Sun, 25 Jan 2015 23:45:57 +0100 Subject: [PATCH] - suppress more warnings in SDK --- .../com/jme3/gde/core/filters/impl/bloom/BloomWizardAction.java | 1 + .../com/jme3/gde/core/filters/impl/bloom/BloomWizardPanel1.java | 1 + .../com/jme3/gde/core/importantfiles/ImportantFilesNode.java | 1 + .../src/com/jme3/gde/core/navigator/SceneNavigatorPanel.java | 1 + .../src/com/jme3/gde/core/properties/LodLevelProperty.java | 1 + .../gde/core/properties/ParticleInfluencerPropertyEditor.java | 1 + .../src/com/jme3/gde/core/properties/SceneExplorerProperty.java | 2 +- .../jme3/gde/core/properties/SceneExplorerPropertyEditor.java | 1 + .../src/com/jme3/gde/core/sceneexplorer/nodes/JmeGeometry.java | 1 + .../jme3/gde/core/sceneexplorer/nodes/JmeParticleEmitter.java | 1 + .../src/com/jme3/gde/core/util/ComboInplaceEditor.java | 1 + sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GElementNode.java | 1 + .../src/com/jme3/gde/gui/palette/CategoryChildFactory.java | 2 +- sdk/jme3-gui/src/com/jme3/gde/gui/palette/ElementFilter.java | 1 + .../src/com/jme3/gde/gui/palette/WidgetChildFactory.java | 1 + .../src/com/jme3/gde/gui/view/NiftyGuiVisualElement.java | 1 + 16 files changed, 16 insertions(+), 2 deletions(-) diff --git a/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/bloom/BloomWizardAction.java b/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/bloom/BloomWizardAction.java index 5895686c4..ef83382fc 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/bloom/BloomWizardAction.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/bloom/BloomWizardAction.java @@ -15,6 +15,7 @@ import org.openide.WizardDescriptor; // @ActionID(category="...", id="com.jme3.gde.core.filters.impl.bloom.BloomWizardAction") // @ActionRegistration(displayName="Open Bloom Wizard") // @ActionReference(path="Menu/Tools", position=...) +@SuppressWarnings({"unchecked", "rawtypes"}) public final class BloomWizardAction implements ActionListener { private WizardDescriptor.Panel[] panels; diff --git a/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/bloom/BloomWizardPanel1.java b/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/bloom/BloomWizardPanel1.java index 4b189f54e..488c3131f 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/bloom/BloomWizardPanel1.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/filters/impl/bloom/BloomWizardPanel1.java @@ -6,6 +6,7 @@ import javax.swing.event.ChangeListener; import org.openide.WizardDescriptor; import org.openide.util.HelpCtx; +@SuppressWarnings({"unchecked", "rawtypes"}) public class BloomWizardPanel1 implements WizardDescriptor.Panel { /** diff --git a/sdk/jme3-core/src/com/jme3/gde/core/importantfiles/ImportantFilesNode.java b/sdk/jme3-core/src/com/jme3/gde/core/importantfiles/ImportantFilesNode.java index 0c8b72c07..61335c17d 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/importantfiles/ImportantFilesNode.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/importantfiles/ImportantFilesNode.java @@ -27,6 +27,7 @@ import org.openide.util.Lookup; * * @author normenhansen */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class ImportantFilesNode extends AbstractNode implements FileChangeListener { private static Image smallImage = IconList.important.getImage(); diff --git a/sdk/jme3-core/src/com/jme3/gde/core/navigator/SceneNavigatorPanel.java b/sdk/jme3-core/src/com/jme3/gde/core/navigator/SceneNavigatorPanel.java index bd09093b8..9329a1960 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/navigator/SceneNavigatorPanel.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/navigator/SceneNavigatorPanel.java @@ -26,6 +26,7 @@ import org.openide.util.Utilities; * @author normenhansen */ @NavigatorPanel.Registration(displayName = "SceneExplorer", mimeType = "application/jme3model") +@SuppressWarnings({"unchecked", "rawtypes"}) public class SceneNavigatorPanel extends JPanel implements NavigatorPanel, LookupListener, ExplorerManager.Provider { private final BeanTreeView beanTreeView = new BeanTreeView(); diff --git a/sdk/jme3-core/src/com/jme3/gde/core/properties/LodLevelProperty.java b/sdk/jme3-core/src/com/jme3/gde/core/properties/LodLevelProperty.java index 7ccb06dcc..1eabfe2d1 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/properties/LodLevelProperty.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/properties/LodLevelProperty.java @@ -43,6 +43,7 @@ import java.util.concurrent.Callable; * * @author Nehon */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class LodLevelProperty extends SceneExplorerProperty { ComboBoxPropertyEditor editor = null; diff --git a/sdk/jme3-core/src/com/jme3/gde/core/properties/ParticleInfluencerPropertyEditor.java b/sdk/jme3-core/src/com/jme3/gde/core/properties/ParticleInfluencerPropertyEditor.java index 4176d1f7b..71b93b87a 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/properties/ParticleInfluencerPropertyEditor.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/properties/ParticleInfluencerPropertyEditor.java @@ -54,6 +54,7 @@ import org.openide.util.Exceptions; * * @author normenhansen */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class ParticleInfluencerPropertyEditor implements PropertyEditor { private LinkedList listeners = new LinkedList(); diff --git a/sdk/jme3-core/src/com/jme3/gde/core/properties/SceneExplorerProperty.java b/sdk/jme3-core/src/com/jme3/gde/core/properties/SceneExplorerProperty.java index 0c3e8f635..05d75eb95 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/properties/SceneExplorerProperty.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/properties/SceneExplorerProperty.java @@ -61,7 +61,7 @@ import org.openide.util.Mutex; * * @author normenhansen */ -@SuppressWarnings("unchecked") +@SuppressWarnings({"unchecked", "rawtypes"}) public class SceneExplorerProperty extends PropertySupport.Reflection { protected static final Logger logger = Logger.getLogger(SceneExplorerProperty.class.getName()); diff --git a/sdk/jme3-core/src/com/jme3/gde/core/properties/SceneExplorerPropertyEditor.java b/sdk/jme3-core/src/com/jme3/gde/core/properties/SceneExplorerPropertyEditor.java index 19c573db8..c04527e11 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/properties/SceneExplorerPropertyEditor.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/properties/SceneExplorerPropertyEditor.java @@ -36,6 +36,7 @@ package com.jme3.gde.core.properties; * * @author normenhansen */ +@SuppressWarnings({"unchecked", "rawtypes"}) public interface SceneExplorerPropertyEditor { public void setEditor(Class valueType, SceneExplorerProperty prop); } diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeGeometry.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeGeometry.java index e2388e622..4c8b79e42 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeGeometry.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeGeometry.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 JmeGeometry extends JmeSpatial implements MaterialChangeListener { private static Image smallImage = IconList.geometry.getImage(); diff --git a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeParticleEmitter.java b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeParticleEmitter.java index 1b8dc1878..7ac4ba1b9 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeParticleEmitter.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/JmeParticleEmitter.java @@ -57,6 +57,7 @@ import org.openide.nodes.Sheet; * @author normenhansen */ @org.openide.util.lookup.ServiceProvider(service = SceneExplorerNode.class) +@SuppressWarnings({"unchecked", "rawtypes"}) public class JmeParticleEmitter extends JmeGeometry { public JmeParticleEmitter() { diff --git a/sdk/jme3-core/src/com/jme3/gde/core/util/ComboInplaceEditor.java b/sdk/jme3-core/src/com/jme3/gde/core/util/ComboInplaceEditor.java index 32816f5e5..e01b059ca 100644 --- a/sdk/jme3-core/src/com/jme3/gde/core/util/ComboInplaceEditor.java +++ b/sdk/jme3-core/src/com/jme3/gde/core/util/ComboInplaceEditor.java @@ -46,6 +46,7 @@ import org.openide.explorer.propertysheet.PropertyModel; * * @author Nehon */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class ComboInplaceEditor implements InplaceEditor { private PropertyEditor editor = null; diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GElementNode.java b/sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GElementNode.java index 210c94d65..54a185cc8 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GElementNode.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/nodes/GElementNode.java @@ -26,6 +26,7 @@ import org.openide.nodes.Sheet; * * @author cris */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class GElementNode extends AbstractNode{ private final GElement element; private static final String basePath="com/jme3/gde/gui/multiview/icons"; diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/palette/CategoryChildFactory.java b/sdk/jme3-gui/src/com/jme3/gde/gui/palette/CategoryChildFactory.java index 61dda2d50..715d0d03e 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/palette/CategoryChildFactory.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/palette/CategoryChildFactory.java @@ -1,7 +1,6 @@ package com.jme3.gde.gui.palette; -import com.google.common.base.Predicate; import jada.ngeditor.model.elements.GControl; import jada.ngeditor.model.elements.GElement; import java.util.List; @@ -10,6 +9,7 @@ import org.openide.nodes.ChildFactory; import org.openide.nodes.Children; import org.openide.nodes.Node; +@SuppressWarnings({"unchecked", "rawtypes"}) public class CategoryChildFactory extends ChildFactory { @Override diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/palette/ElementFilter.java b/sdk/jme3-gui/src/com/jme3/gde/gui/palette/ElementFilter.java index dfb06b790..57f247505 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/palette/ElementFilter.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/palette/ElementFilter.java @@ -10,6 +10,7 @@ import com.google.common.base.Predicate; * * @author cris */ +@SuppressWarnings({"unchecked", "rawtypes"}) abstract class ElementFilter implements Predicate{ private final String name; diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/palette/WidgetChildFactory.java b/sdk/jme3-gui/src/com/jme3/gde/gui/palette/WidgetChildFactory.java index 2da997500..8a1c50ade 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/palette/WidgetChildFactory.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/palette/WidgetChildFactory.java @@ -18,6 +18,7 @@ import org.openide.nodes.Node; * * @author cris */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class WidgetChildFactory extends ChildFactory{ private final ElementFilter category; diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/view/NiftyGuiVisualElement.java b/sdk/jme3-gui/src/com/jme3/gde/gui/view/NiftyGuiVisualElement.java index d79502066..c49e50a68 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/view/NiftyGuiVisualElement.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/view/NiftyGuiVisualElement.java @@ -76,6 +76,7 @@ import org.xml.sax.SAXException; preferredID = "NiftyGuiVisual", position = 2000) @Messages("LBL_NiftyGui_VISUAL=Visual") +@SuppressWarnings({"unchecked", "rawtypes"}) public final class NiftyGuiVisualElement extends JPanel implements MultiViewElement , ExplorerManager.Provider,Observer, PropertyChangeListener { private static final Logger logger = Logger.getLogger(NiftyGuiVisualElement.class.getName()); private NiftyGuiDataObject obj;