- add various SuppressWarnings("unchecked")

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7677 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
nor..67 2011-06-20 01:54:10 +00:00
parent 16c60c7cde
commit 0b02438f96
13 changed files with 13 additions and 1 deletions

View File

@ -74,6 +74,7 @@ public final class AngelFontWizardIterator implements WizardDescriptor.Instantia
* @return * @return
* @throws IOException * @throws IOException
*/ */
@SuppressWarnings("unchecked")
public Set<FileObject> instantiate() throws IOException { public Set<FileObject> instantiate() throws IOException {
String name = (String) wizard.getProperty("font_name"); String name = (String) wizard.getProperty("font_name");
int fontSize = (Integer) wizard.getProperty("font_size"); int fontSize = (Integer) wizard.getProperty("font_size");

View File

@ -42,6 +42,7 @@ import org.w3c.dom.Document;
import org.w3c.dom.Element; import org.w3c.dom.Element;
import org.xml.sax.InputSource; import org.xml.sax.InputSource;
@SuppressWarnings("unchecked")
public class AssetPackProject implements Project { public class AssetPackProject implements Project {
private final FileObject projectDir; private final FileObject projectDir;

View File

@ -66,6 +66,7 @@ import org.openide.util.lookup.ProxyLookup;
* *
* @author normenhansen * @author normenhansen
*/ */
@SuppressWarnings("unchecked")
public class AssetDataObject extends MultiDataObject { public class AssetDataObject extends MultiDataObject {
protected final Lookup lookup; protected final Lookup lookup;

View File

@ -51,6 +51,7 @@ import org.openide.util.lookup.Lookups;
* *
* @author normenhansen * @author normenhansen
*/ */
@SuppressWarnings("unchecked")
public class ProjectAssetManager extends DesktopAssetManager { public class ProjectAssetManager extends DesktopAssetManager {
private Project project; private Project project;

View File

@ -77,6 +77,7 @@ import org.openide.util.lookup.Lookups;
* *
* @author normenhansen * @author normenhansen
*/ */
@SuppressWarnings("unchecked")
public class SceneApplication extends Application implements LookupProvider, LookupListener { public class SceneApplication extends Application implements LookupProvider, LookupListener {
private PointLight camLight; private PointLight camLight;

View File

@ -620,6 +620,7 @@ public final class MaterialEditorTopComponent extends CloneableTopComponent impl
} }
} }
@SuppressWarnings("unchecked")
private void showMaterial() { private void showMaterial() {
try { try {
AssetKey key = new AssetKey(manager.getRelativeAssetPath(materialFileName)); AssetKey key = new AssetKey(manager.getRelativeAssetPath(materialFileName));

View File

@ -34,6 +34,7 @@ import org.openide.loaders.DataObject;
import org.openide.util.Exceptions; import org.openide.util.Exceptions;
import org.openide.util.Lookup; import org.openide.util.Lookup;
@SuppressWarnings("unchecked")
public final class ImportModel implements ActionListener { public final class ImportModel implements ActionListener {
private final Project context; private final Project context;

View File

@ -24,6 +24,7 @@ import org.openide.NotifyDescriptor.Message;
import org.openide.WizardDescriptor; import org.openide.WizardDescriptor;
import org.openide.filesystems.FileChooserBuilder; import org.openide.filesystems.FileChooserBuilder;
@SuppressWarnings("unchecked")
public final class ModelImporterVisualPanel1 extends JPanel implements AssetEventListener { public final class ModelImporterVisualPanel1 extends JPanel implements AssetEventListener {
private OffScenePanel offPanel; private OffScenePanel offPanel;

View File

@ -168,6 +168,7 @@ public class InstallBlenderExporterPanel extends javax.swing.JDialog {
} }
@SuppressWarnings("unchecked")
private static String getWindowsRegistryBlenderPath() { private static String getWindowsRegistryBlenderPath() {
final int HKEY_CURRENT_USER = 0x80000001; final int HKEY_CURRENT_USER = 0x80000001;

View File

@ -64,6 +64,7 @@ import org.openide.util.Lookup;
* *
* @author normenhansen * @author normenhansen
*/ */
@SuppressWarnings("unchecked")
public class SceneEditorController implements PropertyChangeListener, NodeListener { public class SceneEditorController implements PropertyChangeListener, NodeListener {
private JmeSpatial jmeRootNode; private JmeSpatial jmeRootNode;

View File

@ -75,6 +75,7 @@ import org.openide.util.Exceptions;
* *
* @author normenhansen, bowens * @author normenhansen, bowens
*/ */
@SuppressWarnings("unchecked")
public class TerrainEditorController { public class TerrainEditorController {
private JmeSpatial jmeRootNode; private JmeSpatial jmeRootNode;
private Node terrainNode; private Node terrainNode;

View File

@ -54,7 +54,7 @@ public class AddSkyboxAction extends AbstractNewSpatialWizardAction {
return null; return null;
} }
public Spatial generateSkybox(WizardDescriptor wiz) { private Spatial generateSkybox(WizardDescriptor wiz) {
if ((Boolean) wiz.getProperty("multipleTextures")) { if ((Boolean) wiz.getProperty("multipleTextures")) {
Texture south = (Texture) wiz.getProperty("textureSouth"); Texture south = (Texture) wiz.getProperty("textureSouth");
Texture north = (Texture) wiz.getProperty("textureNorth"); Texture north = (Texture) wiz.getProperty("textureNorth");

View File

@ -48,6 +48,7 @@ import org.openide.util.Utilities;
* *
* @author normenhansen * @author normenhansen
*/ */
@SuppressWarnings("unchecked")
public class VehicleEditorController implements LookupListener, ActionListener { public class VehicleEditorController implements LookupListener, ActionListener {
private JmeSpatial jmeRootNode; private JmeSpatial jmeRootNode;