abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r422074 - /incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/json/JSONWriter.java
Date Fri, 14 Jul 2006 21:58:03 GMT
Author: rooneg
Date: Fri Jul 14 14:58:03 2006
New Revision: 422074

URL: http://svn.apache.org/viewvc?rev=422074&view=rev
Log:
Clean up some unneccessary code in the JSONWriter class.

* extensions/src/main/java/org/apache/abdera/ext/json/JSONWriter.java
  (JSONWriter.toJSON): Remove some redundant toString() calls.

Modified:
    incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/json/JSONWriter.java

Modified: incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/json/JSONWriter.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/json/JSONWriter.java?rev=422074&r1=422073&r2=422074&view=diff
==============================================================================
--- incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/json/JSONWriter.java
(original)
+++ incubator/abdera/java/trunk/extensions/src/main/java/org/apache/abdera/ext/json/JSONWriter.java
Fri Jul 14 14:58:03 2006
@@ -108,7 +108,7 @@
     for(Link link : links) {
       JSONObject jslink = new JSONObject();
       jslink.put("href", link.getHref().toString());
-      jslink.put("rel", link.getRel().toString());
+      jslink.put("rel", link.getRel());
       jslinks.put(jslink);
     }
     jsentry.put("links", jslinks);
@@ -229,7 +229,7 @@
     for(Link link : links) {
       JSONObject jslink = new JSONObject();
       jslink.put("href", link.getHref().toString());
-      jslink.put("rel", link.getRel().toString());
+      jslink.put("rel", link.getRel());
       jslinks.put(jslink);
     }        
     jsfeed.put("links", jslinks);



Mime
View raw message