[jboss-svn-commits] JBL Code SVN: r29651 - labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/message.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Oct 19 06:12:28 EDT 2009
Author: kevin.conner at jboss.com
Date: 2009-10-19 06:12:28 -0400 (Mon, 19 Oct 2009)
New Revision: 29651
Modified:
labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/message/MessageAlerts.java
Log:
Fix 1.5 compilation issues: JBESB-2891
Modified: labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/message/MessageAlerts.java
===================================================================
--- labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/message/MessageAlerts.java 2009-10-19 07:16:44 UTC (rev 29650)
+++ labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/message/MessageAlerts.java 2009-10-19 10:12:28 UTC (rev 29651)
@@ -48,24 +48,21 @@
alerts = new ArrayList<Hashtable>();
}
- @Override
public void clearAlerts() {
alerts = new ArrayList<Hashtable>();
}
- @Override
public ArrayList<Hashtable> getAlerts() {
return alerts;
}
- @Override
public void handleNotification(Notification notification, Object handback) {
String source = notification.getSource().toString();
Hashtable<String,String> notifHash = new Hashtable<String, String>();
notifHash.put(NOTIFICATION_MESSAGE, notification.getMessage());
notifHash.put(NOTIFICATION_SOURCE, source);
- notifHash.put(NOTIFICATION_SEQUENCE_LONG, new String("" + notification.getSequenceNumber()));
- notifHash.put(NOTIFICATION_TIMESTAMP_LONG, new String("" + notification.getTimeStamp()));
+ notifHash.put(NOTIFICATION_SEQUENCE_LONG, Long.toString(notification.getSequenceNumber()));
+ notifHash.put(NOTIFICATION_TIMESTAMP_LONG, Long.toString(notification.getTimeStamp()));
notifHash.put(NOTIFICATION_TYPE, notification.getType());
alerts.add(notifHash);
}
More information about the jboss-svn-commits
mailing list