diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-02-06 10:29:18 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2009-02-06 10:29:18 +0000 |
commit | aba1600a31dade0d90f164c5f9533e4fd1120d54 (patch) | |
tree | cb7184f2a64706c01797f4cb177a60e7d9b1ddc5 /src/net/java/sip/communicator/impl/gui/event | |
parent | ce5a25be0660fc8db22af320d355d4a40c3bf02e (diff) | |
download | jitsi-aba1600a31dade0d90f164c5f9533e4fd1120d54.zip jitsi-aba1600a31dade0d90f164c5f9533e4fd1120d54.tar.gz jitsi-aba1600a31dade0d90f164c5f9533e4fd1120d54.tar.bz2 |
Fixes warnings about raw-type use, removes unnecessary fields, marks fields final where possible.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/event')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/event/PluginComponentEvent.java | 4 | ||||
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/event/PluginComponentListener.java | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/event/PluginComponentEvent.java b/src/net/java/sip/communicator/impl/gui/event/PluginComponentEvent.java index 3063875..3cff100 100644 --- a/src/net/java/sip/communicator/impl/gui/event/PluginComponentEvent.java +++ b/src/net/java/sip/communicator/impl/gui/event/PluginComponentEvent.java @@ -17,8 +17,7 @@ import net.java.sip.communicator.service.gui.*; public class PluginComponentEvent extends EventObject { - - private int eventID = -1; + private final int eventID; /** * Indicates that the PluginComponentEvent instance was triggered by @@ -43,6 +42,7 @@ public class PluginComponentEvent int eventID) { super(pluginComponent); + this.eventID = eventID; } diff --git a/src/net/java/sip/communicator/impl/gui/event/PluginComponentListener.java b/src/net/java/sip/communicator/impl/gui/event/PluginComponentListener.java index fc4d2c4..515a9bd 100644 --- a/src/net/java/sip/communicator/impl/gui/event/PluginComponentListener.java +++ b/src/net/java/sip/communicator/impl/gui/event/PluginComponentListener.java @@ -7,13 +7,15 @@ package net.java.sip.communicator.impl.gui.event; import java.util.*; + /** * Listens for all events caused by adding or removing of a plugin component. * * @author Yana Stamcheva */ public interface PluginComponentListener - extends EventListener { + extends EventListener +{ /** * Indicates that a plugin component has been successfully added @@ -22,7 +24,7 @@ public interface PluginComponentListener * plugin component */ public void pluginComponentAdded(PluginComponentEvent event); - + /** * Indicates that a plugin component has been successfully removed * from the container. |