Commit 56af262c authored by Andre Freyssinet's avatar Andre Freyssinet

Avoids compilation warnings.

parent fe9d84c1
......@@ -464,7 +464,7 @@ public class Tool {
}
public static void msgProperties(StringBuilder strbuf, Message msg) throws JMSException {
for (Enumeration<String> names = msg.getPropertyNames();names.hasMoreElements();) {
for (@SuppressWarnings("unchecked") Enumeration<String> names = msg.getPropertyNames();names.hasMoreElements();) {
String name = names.nextElement();
strbuf.append("| ").append(name).append("=").append(msg.getStringProperty(name)).append('\n');
}
......@@ -594,7 +594,7 @@ public class Tool {
public static void statistics(Queue queue) {
try {
Hashtable statistics = queue.getStatistics();
@SuppressWarnings("rawtypes") Hashtable statistics = queue.getStatistics();
StringBuilder strbuf = new StringBuilder();
for (Object key : statistics.keySet()) {
strbuf.append("| ").append(key).append("=").append(statistics.get(key)).append('\n');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment