roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r587760 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/pings/WeblogUpdatePinger.java
Date Wed, 24 Oct 2007 03:05:54 GMT
Author: snoopdave
Date: Tue Oct 23 20:05:53 2007
New Revision: 587760

URL: http://svn.apache.org/viewvc?rev=587760&view=rev
Log:
XML-RPC uses HashMap not Hashtable

Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/pings/WeblogUpdatePinger.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/pings/WeblogUpdatePinger.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/pings/WeblogUpdatePinger.java?rev=587760&r1=587759&r2=587760&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/pings/WeblogUpdatePinger.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/pings/WeblogUpdatePinger.java
Tue Oct 23 20:05:53 2007
@@ -31,7 +31,7 @@
 import java.net.URL;
 import java.net.UnknownHostException;
 import java.util.ArrayList;
-import java.util.Hashtable;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Set;
 import org.apache.commons.logging.Log;
@@ -128,8 +128,8 @@
         // Deal with the fact that some buggy ping targets may not respond with the proper
struct type.
         if (obj == null) return new PingResult(null,null);
         try {
-            // normal case: response is a struct (represented as a Hashtable) with Boolean
flerror and String fields.
-            Hashtable result = (Hashtable) obj;
+            // normal case: response is a struct (represented as a HashMap) with Boolean
flerror and String fields.
+            HashMap result = (HashMap) obj;
             return new PingResult((Boolean) result.get("flerror"), (String) result.get("message"));
         } catch (Exception ex) {
             // exception case:  The caller responded with an unexpected type, though parsed
at the basic XML RPC level.



Mime
View raw message