aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/classes/share/javax/media/j3d/LOD.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/classes/share/javax/media/j3d/LOD.java b/src/classes/share/javax/media/j3d/LOD.java
index e4dc2c1..c0c00d4 100644
--- a/src/classes/share/javax/media/j3d/LOD.java
+++ b/src/classes/share/javax/media/j3d/LOD.java
@@ -44,10 +44,10 @@ public abstract class LOD extends Behavior {
WakeupOnElapsedFrames wakeupFrame = new WakeupOnElapsedFrames(0, true);
- /**
- * The LOD Node's vector of switch nodes.
- */
- Vector switches = new Vector(5);
+/**
+ * The LOD Node's vector of switch nodes.
+ */
+Vector<Switch> switches = new Vector<Switch>(5);
/**
* Constructs and initializes an LOD node.
@@ -91,14 +91,14 @@ public abstract class LOD extends Behavior {
switches.removeElementAt(index);
}
- /**
- * Returns the switch node specified by the index.
- * @param index which switch node to return
- * @return the switch node at location index
- */
- public Switch getSwitch(int index) {
- return (Switch) switches.elementAt(index);
- }
+/**
+ * Returns the switch node specified by the index.
+ * @param index which switch node to return
+ * @return the switch node at location index
+ */
+public Switch getSwitch(int index) {
+ return switches.elementAt(index);
+}
/**
* Returns the enumeration object of all switches.