jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r1204541 - /jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/observation/SubscriptionImpl.java
Date Mon, 21 Nov 2011 15:26:36 GMT
Author: reschke
Date: Mon Nov 21 15:26:35 2011
New Revision: 1204541

URL: http://svn.apache.org/viewvc?rev=1204541&view=rev
Log:
Code cleanup (generics).

Modified:
    jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/observation/SubscriptionImpl.java

Modified: jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/observation/SubscriptionImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/observation/SubscriptionImpl.java?rev=1204541&r1=1204540&r2=1204541&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/observation/SubscriptionImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-server/src/main/java/org/apache/jackrabbit/webdav/jcr/observation/SubscriptionImpl.java
Mon Nov 21 15:26:35 2011
@@ -541,10 +541,10 @@ public class SubscriptionImpl implements
                 // info
                 Element info = DomUtil.addChildElement(eventElem, XML_EVENTINFO, NAMESPACE);
                 try {
-                    @SuppressWarnings({"RawUseOfParameterizedType"}) Map m = event.getInfo();
-                    for (Object o : m.keySet()) {
-                        String key = o.toString();
-                        Object value = m.get(key);
+                    Map<?, ?> m = event.getInfo();
+                    for (Map.Entry<?, ?> entry : m.entrySet()) {
+                        String key = entry.getKey().toString();
+                        Object value = entry.getValue();
                         if (value != null) {
                             DomUtil.addChildElement(info, key, Namespace.EMPTY_NAMESPACE,
value.toString());
                         } else {



Mime
View raw message