- add various SuppressWarnings("unchecked")
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7677 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
16c60c7cde
commit
0b02438f96
@ -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");
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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));
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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");
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user