- add various SuppressWarnings("unchecked")

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7677 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent 16c60c7cde
commit 0b02438f96
  1. 1
      sdk/jme3-angelfont/src/com/jme3/gde/angelfont/AngelFontWizardIterator.java
  2. 1
      sdk/jme3-assetpack-support/src/com/jme3/gde/assetpack/project/AssetPackProject.java
  3. 1
      sdk/jme3-core/src/com/jme3/gde/core/assets/AssetDataObject.java
  4. 1
      sdk/jme3-core/src/com/jme3/gde/core/assets/ProjectAssetManager.java
  5. 1
      sdk/jme3-core/src/com/jme3/gde/core/scene/SceneApplication.java
  6. 1
      sdk/jme3-materialeditor/src/com/jme3/gde/materials/multiview/MaterialEditorTopComponent.java
  7. 1
      sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ImportModel.java
  8. 1
      sdk/jme3-model-importer/src/com/jme3/gde/modelimporter/ModelImporterVisualPanel1.java
  9. 1
      sdk/jme3-ogretools/src/com/jme3/gde/ogretools/blender/InstallBlenderExporterPanel.java
  10. 1
      sdk/jme3-scenecomposer/src/com/jme3/gde/scenecomposer/SceneEditorController.java
  11. 1
      sdk/jme3-terrain-editor/src/com/jme3/gde/terraineditor/TerrainEditorController.java
  12. 2
      sdk/jme3-terrain-editor/src/com/jme3/gde/terraineditor/sky/AddSkyboxAction.java
  13. 1
      sdk/jme3-vehicle-creator/src/com/jme3/gde/vehiclecreator/VehicleEditorController.java

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save