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

Issue 1807042: Cleaning up warnings (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 8 months ago by Jasvir
Modified:
15 years, 8 months ago
CC:
reply_codereview.appspotmail.com, shindig.remailer_gmail.com
Base URL:
https://svn.apache.org/repos/asf/shindig/trunk/
Visibility:
Public.

Description

Simple clean up * getting rid of the unused imports * added .equals() on classes that have a .compare() * corrected misuse of == instead of .equals() for testing strings * replace repeated string concat with a stringbuffer

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added missing .hashCode #

Total comments: 4

Patch Set 3 : More stringbuffers and revert to == for string #

Patch Set 4 : Revert CajaHtmlParser change from a different CL #

Total comments: 2

Patch Set 5 : Cleaning up warnings #

Total comments: 5

Patch Set 6 : Cleaning up warnings #

Messages

Total messages: 14
Jasvir
15 years, 8 months ago (2010-07-12 07:33:26 UTC) #1
henry.saputra
http://codereview.appspot.com/1807042/diff/1/2 File java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java (right): http://codereview.appspot.com/1807042/diff/1/2#newcode624 java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java:624: public boolean equals(Object other) { We should also override ...
15 years, 8 months ago (2010-07-12 17:15:07 UTC) #2
Jasvir
http://codereview.appspot.com/1807042/diff/1/2 File java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java (right): http://codereview.appspot.com/1807042/diff/1/2#newcode624 java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java:624: public boolean equals(Object other) { On 2010/07/12 17:15:07, henry.saputra ...
15 years, 8 months ago (2010-07-12 19:51:21 UTC) #3
johnfargo
http://codereview.appspot.com/1807042/diff/5001/6003 File java/gadgets/src/test/java/org/apache/shindig/gadgets/render/HtmlRendererTest.java (right): http://codereview.appspot.com/1807042/diff/5001/6003#newcode65 java/gadgets/src/test/java/org/apache/shindig/gadgets/render/HtmlRendererTest.java:65: if (HtmlAccelServlet.ACCEL_GADGET_PARAM_NAME.equals(name)) { this isn't a misuse -- the ...
15 years, 8 months ago (2010-07-12 20:36:33 UTC) #4
Jasvir
http://codereview.appspot.com/1807042/diff/5001/6003 File java/gadgets/src/test/java/org/apache/shindig/gadgets/render/HtmlRendererTest.java (right): http://codereview.appspot.com/1807042/diff/5001/6003#newcode65 java/gadgets/src/test/java/org/apache/shindig/gadgets/render/HtmlRendererTest.java:65: if (HtmlAccelServlet.ACCEL_GADGET_PARAM_NAME.equals(name)) { Ah. In that case, the original ...
15 years, 8 months ago (2010-07-12 21:53:01 UTC) #5
henry.saputra
http://codereview.appspot.com/1807042/diff/14001/15001 File java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java (right): http://codereview.appspot.com/1807042/diff/14001/15001#newcode629 java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java:629: that.operationPath == this.operationPath); Should be using String.equals() method instead ...
15 years, 8 months ago (2010-07-13 01:22:09 UTC) #6
Jasvir
http://codereview.appspot.com/1807042/diff/14001/15001 File java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java (right): http://codereview.appspot.com/1807042/diff/14001/15001#newcode629 java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java:629: that.operationPath == this.operationPath); On 2010/07/13 01:22:10, henry.saputra wrote: > ...
15 years, 8 months ago (2010-07-13 05:32:58 UTC) #7
Jasvir
ping
15 years, 8 months ago (2010-07-20 21:32:40 UTC) #8
Paul Lindner
generally fine.. http://codereview.appspot.com/1807042/diff/18001/19001 File java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java (right): http://codereview.appspot.com/1807042/diff/18001/19001#newcode629 java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java:629: this.operationPath.equals(that.operationPath)); suggest Objects.equal(this.operationPath, that.operationPath) to handle nulls ...
15 years, 8 months ago (2010-07-20 21:56:16 UTC) #9
Jasvir
http://codereview.appspot.com/1807042/diff/18001/19001 File java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java (right): http://codereview.appspot.com/1807042/diff/18001/19001#newcode629 java/common/src/main/java/org/apache/shindig/protocol/DefaultHandlerRegistry.java:629: this.operationPath.equals(that.operationPath)); On 2010/07/20 21:56:16, Paul Lindner wrote: > suggest ...
15 years, 8 months ago (2010-07-20 23:18:53 UTC) #10
Paul Lindner
On 2010/07/20 23:18:53, jasvir wrote: > http://codereview.appspot.com/1807042/diff/18001/19003#newcode65 > java/gadgets/src/test/java/org/apache/shindig/gadgets/render/HtmlRendererTest.java:65: > if (HtmlAccelServlet.ACCEL_GADGET_PARAM_NAME == name) { ...
15 years, 8 months ago (2010-07-21 00:24:23 UTC) #11
Jasvir
Better yet - syncing to head removed all that guff anyways. I'll commit unless someone ...
15 years, 8 months ago (2010-07-21 02:03:40 UTC) #12
Paul Lindner
go for it! On Jul 20, 2010, at 7:03 PM, jasvir@gmail.com wrote: > Better yet ...
15 years, 8 months ago (2010-07-21 02:18:47 UTC) #13
fargo
15 years, 8 months ago (2010-07-21 03:56:21 UTC) #14
LGTM (too)

On Tue, Jul 20, 2010 at 7:18 PM, Paul Lindner <lindner@inuus.com> wrote:

> go for it!
> On Jul 20, 2010, at 7:03 PM, jasvir@gmail.com wrote:
>
> > Better yet - syncing to head removed all that guff anyways.  I'll commit
> > unless someone objects.
> >
> > http://codereview.appspot.com/1807042/show
>
>
Sign in to reply to this message.

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