aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java
diff options
context:
space:
mode:
Diffstat (limited to 'netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java')
-rw-r--r--netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java b/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java
index cd37c44..65032fe 100644
--- a/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java
+++ b/netx/net/sourceforge/jnlp/runtime/AppletEnvironment.java
@@ -57,7 +57,7 @@ public class AppletEnvironment implements AppletContext, AppletStub {
private Container cont;
/** weak references to the audio clips */
- private WeakList weakClips = new WeakList();
+ private WeakList<AppletAudioClip> weakClips = new WeakList<AppletAudioClip>();
/** whether the applet has been started / displayed */
private boolean appletStarted = false;
@@ -121,9 +121,9 @@ public class AppletEnvironment implements AppletContext, AppletStub {
public void destroy() {
destroyed = true;
- List clips = weakClips.hardList();
+ List<AppletAudioClip> clips = weakClips.hardList();
for (int i = 0; i < clips.size(); i++) {
- ((AppletAudioClip)clips.get(i)).dispose();
+ clips.get(i).dispose();
}
}
@@ -217,7 +217,7 @@ public class AppletEnvironment implements AppletContext, AppletStub {
* Returns an enumeration that contains only the applet
* from the JNLP file.
*/
- public Enumeration getApplets() {
+ public Enumeration<Applet> getApplets() {
checkDestroyed();
return Collections.enumeration( Arrays.asList(new Applet[] { applet }) );
@@ -293,7 +293,7 @@ public class AppletEnvironment implements AppletContext, AppletStub {
/**
* Required for JRE1.4, but not implemented yet.
*/
- public Iterator getStreamKeys() {
+ public Iterator<String> getStreamKeys() {
checkDestroyed();
return null;