Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(73)

Issue 14084: Patch for SHINDIG-912 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
17 years ago by etnu00
Modified:
16 years, 6 months ago
Reviewers:
shindig-dev, louiscryan
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 7

Messages

Total messages: 3
etnu00
17 years ago (2009-02-12 07:53:25 UTC) #1
louiscryan
Looks good, a few points. Consider replacing JsonConversionUtilTest.assertJsonEquals with JSonAssert calls. http://codereview.appspot.com/14084/diff/1/8 File java/common/src/main/java/org/apache/shindig/protocol/ApiServlet.java (right): ...
17 years ago (2009-02-12 16:32:35 UTC) #2
etnu00
17 years ago (2009-02-12 19:03:07 UTC) #3
http://codereview.appspot.com/14084/diff/1/8
File java/common/src/main/java/org/apache/shindig/protocol/ApiServlet.java
(right):

http://codereview.appspot.com/14084/diff/1/8#newcode90
Line 90: Logger.getLogger("org.apache.shindig").log(Level.SEVERE,
ee.getCause().getMessage(), ee);
On 2009/02/12 16:32:35, louiscryan wrote:
> this is not SEVERE. Handlers are expected to throw ProtocolException and its
> subtypes alot, at best this is INFO but probably FINE.

This was actually an artifact of me trying to figure out why eclipse was being
stupid.

http://codereview.appspot.com/14084/diff/1/9
File java/common/src/main/java/org/apache/shindig/protocol/JsonRpcServlet.java
(right):

http://codereview.appspot.com/14084/diff/1/9#newcode162
Line 162: Map<String, Object> map = Maps.newHashMap();
On 2009/02/12 16:32:35, louiscryan wrote:
> JSONObject preserved order of fields, may be a good idea to use LinkedHashMap
to
> do the same for readability of the result.

JSONObject uses a HashMap internally. It does not preserve the order of fields.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b