- suppress more warnings in SDK

This commit is contained in:
Normen Hansen 2015-01-25 23:36:25 +01:00
parent 886a9c6479
commit 5bc1595ab8
23 changed files with 23 additions and 5 deletions

View File

@ -10,6 +10,7 @@ import javax.swing.event.ChangeListener;
import org.openide.WizardDescriptor;
import org.openide.util.HelpCtx;
@SuppressWarnings({"unchecked", "rawtypes"})
public class CreateProjectWizardPanel1 implements WizardDescriptor.Panel {
WizardDescriptor wiz;
/**

View File

@ -9,6 +9,7 @@ import javax.swing.event.ChangeListener;
import org.openide.WizardDescriptor;
import org.openide.util.HelpCtx;
@SuppressWarnings({"unchecked", "rawtypes"})
public class CreateProjectWizardPanel2 implements WizardDescriptor.Panel {
/**

View File

@ -9,6 +9,7 @@ import javax.swing.event.ChangeListener;
import org.openide.WizardDescriptor;
import org.openide.util.HelpCtx;
@SuppressWarnings({"unchecked", "rawtypes"})
public class ImportWizardPanel1 implements WizardDescriptor.Panel {
/**

View File

@ -9,6 +9,7 @@ import javax.swing.event.ChangeListener;
import org.openide.WizardDescriptor;
import org.openide.util.HelpCtx;
@SuppressWarnings({"unchecked", "rawtypes"})
public class ImportWizardPanel2 implements WizardDescriptor.Panel {
/**

View File

@ -9,6 +9,7 @@ import javax.swing.event.ChangeListener;
import org.openide.WizardDescriptor;
import org.openide.util.HelpCtx;
@SuppressWarnings({"unchecked", "rawtypes"})
public class PublishAssetPackWizardPanel2 implements WizardDescriptor.Panel {
/**

View File

@ -52,6 +52,7 @@ import org.openide.util.Exceptions;
// @ActionID(category="...", id="com.jme3.gde.core.sceneexplorer.nodes.actions.impl.NewCustomControlWizardAction")
// @ActionRegistration(displayName="Open NewCustomControl Wizard")
// @ActionReference(path="Menu/Tools", position=...)
@SuppressWarnings({"unchecked", "rawtypes"})
public final class NewAppStateWizardAction implements ActionListener {
private WizardDescriptor.Panel[] panels;

View File

@ -37,6 +37,7 @@ import org.netbeans.api.project.Project;
import org.openide.WizardDescriptor;
import org.openide.util.HelpCtx;
@SuppressWarnings({"unchecked", "rawtypes"})
public class NewAppStateWizardPanel1 implements WizardDescriptor.Panel {
/**

View File

@ -47,6 +47,7 @@ import org.openide.util.Lookup;
*
* @author normenhansen
*/
@SuppressWarnings({"unchecked", "rawtypes"})
public class AssetDataNode extends DataNode {
public AssetDataNode(DataObject obj, Children ch) {

View File

@ -44,6 +44,7 @@ import org.openide.util.Exceptions;
*
* @author normenhansen
*/
@SuppressWarnings({"unchecked", "rawtypes"})
public class ProjectAssetsNodeFactory implements NodeFactory {
private Project proj;

View File

@ -55,6 +55,7 @@ import java.io.InputStream;
*
* @author Kirill Vainer
*/
@SuppressWarnings({"unchecked", "rawtypes"})
public class RelativeOnlyFileLocator implements AssetLocator {
private File root;

View File

@ -40,6 +40,7 @@ import com.jme3.asset.plugins.FileLocator;
* FileLocator that doesn't allow paths outside the AssetManager root.
* @author normenhansen
*/
@SuppressWarnings({"unchecked", "rawtypes"})
public class RootLockingFileLocator extends FileLocator {
@Override

View File

@ -51,6 +51,7 @@ import org.openide.util.Exceptions;
*
* @author normenhansen
*/
@SuppressWarnings({"unchecked", "rawtypes"})
public class SpatialAssetDataObject extends AssetDataObject {
public SpatialAssetDataObject(FileObject pf, MultiFileLoader loader) throws DataObjectExistsException, IOException {

View File

@ -56,7 +56,7 @@ import org.openide.util.actions.CallableSystemAction;
// An example action demonstrating how the wizard could be called from within
// your code. You can copy-paste the code below wherever you need.
@SuppressWarnings("unchecked")
@SuppressWarnings({"unchecked", "rawtypes"})
public final class CodelessProjectWizardAction extends CallableSystemAction {
private static final Logger logger = Logger.getLogger(CodelessProjectWizardAction.class.getName());

View File

@ -41,6 +41,7 @@ import javax.swing.event.ChangeListener;
import org.openide.WizardDescriptor;
import org.openide.util.HelpCtx;
@SuppressWarnings({"unchecked", "rawtypes"})
public class CodelessProjectWizardWizardPanel1 implements WizardDescriptor.Panel {
/**

View File

@ -36,6 +36,7 @@ import javax.swing.event.ChangeListener;
import org.openide.WizardDescriptor;
import org.openide.util.HelpCtx;
@SuppressWarnings({"unchecked", "rawtypes"})
public class CodelessProjectWizardWizardPanel2 implements WizardDescriptor.Panel {
/**

View File

@ -2,7 +2,6 @@ package com.jme3.gde.core.editor;
import com.jme3.app.SimpleApplication;
import com.jme3.app.StatsAppState;
import com.jme3.gde.core.Installer;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.Node;
import com.jme3.system.AppSettings;
@ -10,12 +9,12 @@ import com.jme3.system.awt.AwtPanel;
import com.jme3.system.awt.AwtPanelsContext;
import com.jme3.system.awt.PaintMode;
import java.util.concurrent.Callable;
import org.openide.util.NbPreferences;
/**
*
* @author normenhansen
*/
@SuppressWarnings({"unchecked", "rawtypes"})
public class SceneApplication extends SimpleApplication {
private AwtPanel panel;

View File

@ -59,7 +59,7 @@ import org.openide.util.actions.SystemAction;
*
* @author normenhansen
*/
@SuppressWarnings("unchecked")
@SuppressWarnings({"unchecked", "rawtypes"})
public abstract class AbstractFilterNode extends AbstractNode implements FilterNode, ScenePropertyChangeListener, SceneSyncListener {
protected boolean readOnly = false;

View File

@ -67,7 +67,7 @@ persistenceType = TopComponent.PERSISTENCE_ALWAYS)
@ActionReference(path = "Menu/Window" /*, position = 333 */)
@TopComponent.OpenActionRegistration(displayName = "#CTL_FilterExplorerAction",
preferredID = "FilterExplorerTopComponent")
@SuppressWarnings("unchecked")
@SuppressWarnings({"unchecked", "rawtypes"})
public final class FilterExplorerTopComponent extends TopComponent implements ExplorerManager.Provider {
private static final Logger logger = Logger.getLogger(FilterExplorerTopComponent.class.getName());

View File

@ -59,6 +59,7 @@ import org.openide.util.lookup.Lookups;
*
* @author normenhansen
*/
@SuppressWarnings({"unchecked", "rawtypes"})
public class FilterPostProcessorNode extends AbstractNode {
private FilterDataObject dataObject;

View File

@ -48,6 +48,7 @@ import org.openide.nodes.Node;
* @author normenhansen
*/
@org.openide.util.lookup.ServiceProvider(service = NewFilterAction.class)
@SuppressWarnings({"unchecked", "rawtypes"})
public class NewBloomFilterAction extends AbstractNewFilterWizardAction {
private WizardDescriptor.Panel[] panels;

View File

@ -4,6 +4,7 @@ package com.jme3.gde.core.filters.impl.bloom;
import javax.swing.JComboBox;
import javax.swing.JPanel;
@SuppressWarnings({"unchecked", "rawtypes"})
public final class BloomVisualPanel1 extends JPanel {
/**

View File

@ -13,6 +13,7 @@ import javax.swing.event.ChangeListener;
import org.openide.WizardDescriptor;
import org.openide.util.HelpCtx;
@SuppressWarnings({"unchecked", "rawtypes"})
public class ModelImporterWizardPanel3 implements WizardDescriptor.Panel {
/**

View File

@ -45,6 +45,7 @@ import org.openide.WizardDescriptor;
import org.openide.util.Exceptions;
import org.openide.util.HelpCtx;
@SuppressWarnings({"unchecked", "rawtypes"})
public class CreateTerrainWizardPanel2 implements WizardDescriptor.Panel {
private int terrainTotalSize;