From 4f7a4b19fdb2c5f668515240b7d6faab35605a4e Mon Sep 17 00:00:00 2001 From: Normen Hansen Date: Thu, 29 Jan 2015 15:32:47 +0100 Subject: [PATCH] - suppress warnings in Material Support plugin --- .../jme3/gde/materialdefinition/dialog/AddAttributeDialog.java | 1 + .../materialdefinition/dialog/AddMaterialParameterDialog.java | 1 + .../gde/materialdefinition/dialog/AddWorldParameterDialog.java | 1 + .../gde/materialdefinition/fileStructure/UberStatement.java | 1 + .../materialdefinition/fileStructure/leaves/LeafStatement.java | 1 + .../gde/materialdefinition/navigator/MatDefNavigatorPanel.java | 1 + .../navigator/node/properties/MatParamProperty.java | 1 + .../materialdefinition/shadervisual/ShaderVisualToolBar.java | 1 + .../src/com/jme3/gde/materials/MaterialPropertyEditor.java | 2 +- .../gde/materials/multiview/MaterialEditorTopComponent.java | 1 + .../jme3/gde/materials/multiview/widgets/SelectionPanel.java | 1 + .../src/com/jme3/gde/materials/nvcompress/NVCompress.java | 1 + .../jme3/gde/shadernodedefinition/wizard/SNDefVisualPanel1.java | 1 + .../jme3/gde/shadernodedefinition/wizard/SNDefVisualPanel2.java | 1 + .../gde/shadernodedefinition/wizard/SNDefWizardIterator.java | 1 + 15 files changed, 15 insertions(+), 1 deletion(-) diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddAttributeDialog.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddAttributeDialog.java index 9135e73b2..972f7e2e7 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddAttributeDialog.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddAttributeDialog.java @@ -13,6 +13,7 @@ import javax.swing.DefaultComboBoxModel; * * @author Nehon */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class AddAttributeDialog extends javax.swing.JDialog { private Diagram diagram; diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddMaterialParameterDialog.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddMaterialParameterDialog.java index c97ef8585..be1242009 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddMaterialParameterDialog.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddMaterialParameterDialog.java @@ -14,6 +14,7 @@ import javax.swing.DefaultComboBoxModel; * * @author Nehon */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class AddMaterialParameterDialog extends javax.swing.JDialog { private Diagram diagram; diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddWorldParameterDialog.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddWorldParameterDialog.java index c77499773..277f04d1b 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddWorldParameterDialog.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/dialog/AddWorldParameterDialog.java @@ -13,6 +13,7 @@ import javax.swing.DefaultComboBoxModel; * * @author Nehon */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class AddWorldParameterDialog extends javax.swing.JDialog { private Diagram diagram; diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/fileStructure/UberStatement.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/fileStructure/UberStatement.java index a86231da1..a8348efe3 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/fileStructure/UberStatement.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/fileStructure/UberStatement.java @@ -16,6 +16,7 @@ import java.util.List; * * @author Nehon */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class UberStatement extends Statement { private List listeners = Collections.synchronizedList(new LinkedList()); diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/fileStructure/leaves/LeafStatement.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/fileStructure/leaves/LeafStatement.java index 3fb98fb2b..c58bdc831 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/fileStructure/leaves/LeafStatement.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/fileStructure/leaves/LeafStatement.java @@ -15,6 +15,7 @@ import java.util.List; * * @author Nehon */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class LeafStatement extends Statement { private List listeners = Collections.synchronizedList(new LinkedList()); diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/navigator/MatDefNavigatorPanel.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/navigator/MatDefNavigatorPanel.java index a13845353..3b5427aa8 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/navigator/MatDefNavigatorPanel.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/navigator/MatDefNavigatorPanel.java @@ -22,6 +22,7 @@ import org.openide.util.LookupListener; * @author Nehon */ @NavigatorPanel.Registration(mimeType = "text/jme-materialdefinition", displayName = "Material Def") +@SuppressWarnings({"unchecked", "rawtypes"}) public class MatDefNavigatorPanel extends JPanel implements NavigatorPanel, ExplorerManager.Provider { /** diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/navigator/node/properties/MatParamProperty.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/navigator/node/properties/MatParamProperty.java index 8b09e7b3f..2dde6e780 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/navigator/node/properties/MatParamProperty.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/navigator/node/properties/MatParamProperty.java @@ -36,6 +36,7 @@ import org.openide.util.Lookup; * * @author Nehon */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class MatParamProperty extends Node.Property { private Lookup lookup; diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/shadervisual/ShaderVisualToolBar.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/shadervisual/ShaderVisualToolBar.java index 0e25b0e85..e2ca619b3 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/shadervisual/ShaderVisualToolBar.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materialdefinition/shadervisual/ShaderVisualToolBar.java @@ -11,6 +11,7 @@ import com.jme3.shader.Shader; * * @author Nehon */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class ShaderVisualToolBar extends javax.swing.JPanel { private MatDefShaderElement parent; diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/MaterialPropertyEditor.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/MaterialPropertyEditor.java index c84ce22c9..5c0a337bb 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/MaterialPropertyEditor.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/MaterialPropertyEditor.java @@ -64,7 +64,7 @@ import org.openide.util.Exceptions; * @author normenhansen */ @org.openide.util.lookup.ServiceProvider(service = SceneExplorerPropertyEditor.class) -@SuppressWarnings("unchecked") +@SuppressWarnings({"unchecked", "rawtypes"}) public class MaterialPropertyEditor implements PropertyEditor, SceneExplorerPropertyEditor { private LinkedList listeners = new LinkedList(); diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/multiview/MaterialEditorTopComponent.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/multiview/MaterialEditorTopComponent.java index bc0f41175..9897adeec 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/multiview/MaterialEditorTopComponent.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/multiview/MaterialEditorTopComponent.java @@ -54,6 +54,7 @@ import org.openide.windows.Mode; */ @ConvertAsProperties(dtd = "-//com.jme3.gde.materials.multiview//MaterialEditor//EN", autostore = false) +@SuppressWarnings({"unchecked", "rawtypes"}) public final class MaterialEditorTopComponent extends CloneableTopComponent implements MaterialWidgetListener, MaterialChangeProvider { private static MaterialEditorTopComponent instance; diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/SelectionPanel.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/SelectionPanel.java index f9f794ede..25c046e1c 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/SelectionPanel.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/multiview/widgets/SelectionPanel.java @@ -17,6 +17,7 @@ import com.jme3.gde.materials.MaterialProperty; * * @author normenhansen */ +@SuppressWarnings({"unchecked", "rawtypes"}) public class SelectionPanel extends MaterialPropertyWidget { /** Creates new form SelectionPanel */ diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/nvcompress/NVCompress.java b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/nvcompress/NVCompress.java index 2ee27269d..46e2be144 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/materials/nvcompress/NVCompress.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/materials/nvcompress/NVCompress.java @@ -55,6 +55,7 @@ import jme3tools.converters.ImageToAwt; import jme3tools.converters.MipMapGenerator; import org.openide.util.NbPreferences; +@SuppressWarnings({"unchecked", "rawtypes"}) public class NVCompress extends javax.swing.JFrame { private File texToolsPath; diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefVisualPanel1.java b/sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefVisualPanel1.java index 2134e0e83..a015b5398 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefVisualPanel1.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefVisualPanel1.java @@ -9,6 +9,7 @@ import com.jme3.shader.Shader; import javax.swing.DefaultComboBoxModel; import javax.swing.JPanel; +@SuppressWarnings({"unchecked", "rawtypes"}) public final class SNDefVisualPanel1 extends JPanel { diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefVisualPanel2.java b/sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefVisualPanel2.java index c058612d6..c46b595c0 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefVisualPanel2.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefVisualPanel2.java @@ -12,6 +12,7 @@ import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; import javax.swing.table.DefaultTableModel; +@SuppressWarnings({"unchecked", "rawtypes"}) public final class SNDefVisualPanel2 extends JPanel { private final Object[] emptyObj = {"", "", ""}; diff --git a/sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefWizardIterator.java b/sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefWizardIterator.java index ceae8fc04..8bbcc4a3a 100644 --- a/sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefWizardIterator.java +++ b/sdk/jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefWizardIterator.java @@ -36,6 +36,7 @@ import org.openide.util.NbBundle.Messages; @TemplateRegistration(folder = "Material", content = "../ShaderNodeSource", scriptEngine = "freemarker") }) @Messages("SNDefWizardIterator_displayName=Shader Node Definition") +@SuppressWarnings({"unchecked", "rawtypes"}) public final class SNDefWizardIterator implements WizardDescriptor.InstantiatingIterator { private int index;