aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Bauersachs <ingo@jitsi.org>2011-12-05 19:37:54 +0000
committerIngo Bauersachs <ingo@jitsi.org>2011-12-05 19:37:54 +0000
commit6102f58f12caa76ded763834b92f2af10e283ce8 (patch)
tree270b5224cb6deaf641ef05dbee76777b76593009
parent7fcb6da8ae3ba201f006937d0575e40e17fd9556 (diff)
downloadjitsi-6102f58f12caa76ded763834b92f2af10e283ce8.zip
jitsi-6102f58f12caa76ded763834b92f2af10e283ce8.tar.gz
jitsi-6102f58f12caa76ded763834b92f2af10e283ce8.tar.bz2
Remove warnings
-rw-r--r--src/net/java/sip/communicator/impl/notification/EventNotification.java25
-rw-r--r--src/net/java/sip/communicator/impl/notification/NotificationManager.java4
2 files changed, 11 insertions, 18 deletions
diff --git a/src/net/java/sip/communicator/impl/notification/EventNotification.java b/src/net/java/sip/communicator/impl/notification/EventNotification.java
index b4cc175..a31a39d 100644
--- a/src/net/java/sip/communicator/impl/notification/EventNotification.java
+++ b/src/net/java/sip/communicator/impl/notification/EventNotification.java
@@ -18,23 +18,18 @@ import net.java.sip.communicator.service.notification.*;
public class EventNotification
{
/**
- * The event type as declared by the bundle registering it.
- */
- private final String eventType;
-
- /**
* Indicates if this event notification is currently active. By default all
* notifications are active.
*/
private boolean isActive = true;
-
+
/**
* Contains all actions which will be executed when this event notification
* is fired.
*/
private final Hashtable<String, Action> actionsTable
= new Hashtable<String, Action>();
-
+
/**
* Creates an instance of <tt>EventNotification</tt> by specifying the
* event type as declared by the bundle registering it.
@@ -43,9 +38,8 @@ public class EventNotification
*/
public EventNotification(String eventType)
{
- this.eventType = eventType;
}
-
+
/**
* Adds the given <tt>actionType</tt> to the list of actions for this event
* notifications.
@@ -63,7 +57,7 @@ public class EventNotification
return actionsTable.put(actionType, action);
}
-
+
/**
* Removes the action corresponding to the given <tt>actionType</tt>.
*
@@ -73,7 +67,7 @@ public class EventNotification
{
actionsTable.remove(actionType);
}
-
+
/**
* Returns the set of actions registered for this event notification.
*
@@ -83,7 +77,7 @@ public class EventNotification
{
return actionsTable;
}
-
+
/**
* Returns the <tt>Action</tt> corresponding to the given
* <tt>actionType</tt>.
@@ -97,7 +91,7 @@ public class EventNotification
{
return actionsTable.get(actionType);
}
-
+
/**
* The representation of an action, containing the corresponding
* action type, action descriptor and the default message associated with
@@ -106,9 +100,8 @@ public class EventNotification
public static class Action
{
private final String actionType;
-
private final NotificationActionHandler actionHandler;
-
+
/**
* Creates an instance of <tt>Action</tt> by specifying the type of the
* action, the descriptor and the default message.
@@ -134,7 +127,7 @@ public class EventNotification
{
return actionHandler;
}
-
+
/**
* Return the action type name.
* @return the action type name.
diff --git a/src/net/java/sip/communicator/impl/notification/NotificationManager.java b/src/net/java/sip/communicator/impl/notification/NotificationManager.java
index 059e0a8..a71958d 100644
--- a/src/net/java/sip/communicator/impl/notification/NotificationManager.java
+++ b/src/net/java/sip/communicator/impl/notification/NotificationManager.java
@@ -369,7 +369,7 @@ public class NotificationManager
multiAdHocChatOpSet.addPresenceListener(this);
}
- OperationSetBasicTelephony basicTelephonyOpSet
+ OperationSetBasicTelephony<?> basicTelephonyOpSet
= protocolProvider.getOperationSet(OperationSetBasicTelephony.class);
if (basicTelephonyOpSet != null)
@@ -444,7 +444,7 @@ public class NotificationManager
multiAdHocChatOpSet.removePresenceListener(this);
}
- OperationSetBasicTelephony basicTelephonyOpSet
+ OperationSetBasicTelephony<?> basicTelephonyOpSet
= protocolProvider.getOperationSet(OperationSetBasicTelephony.class);
if (basicTelephonyOpSet != null)