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

Issue 13061: Patch for SHINDIG-757 (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 2 months ago by etnu00
Modified:
14 years, 8 months ago
Reviewers:
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 5

Messages

Total messages: 3
etnu00
15 years, 2 months ago (2009-02-08 11:29:50 UTC) #1
awiner
http://codereview.appspot.com/13061/diff/1/2 File java/common/src/main/java/org/apache/shindig/common/xml/XmlUtil.java (right): http://codereview.appspot.com/13061/diff/1/2#newcode313 Line 313: try { why not just: try { parse(xml); ...
15 years, 2 months ago (2009-02-09 18:58:09 UTC) #2
etnu00
15 years, 2 months ago (2009-02-09 21:27:59 UTC) #3
http://codereview.appspot.com/13061/diff/1/2
File java/common/src/main/java/org/apache/shindig/common/xml/XmlUtil.java
(right):

http://codereview.appspot.com/13061/diff/1/2#newcode313
Line 313: try {
On 2009/02/09 18:58:09, awiner wrote:
> why not just:
> 
>   try {
>     parse(xml);
>   } catch (XmlException e) {
>     throw new RuntimeException(e);
>   }
> ?
> 

Done.

http://codereview.appspot.com/13061/diff/1/9
File java/gadgets/src/main/java/org/apache/shindig/gadgets/spec/GadgetSpec.java
(right):

http://codereview.appspot.com/13061/diff/1/9#newcode56
Line 56: this.checksum = HashUtil.checksum(doc.toString().getBytes());
On 2009/02/09 18:58:09, awiner wrote:
> doc.toString() strikes me as an expensive operation.

It's modestly expensive, but these are always cached so it shouldn't be much of
an issue.
Sign in to reply to this message.

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