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

Issue 14088: Another patch for SHINDIG-912

Can't Edit
Can't Publish+Mail
Start Review
Created:
16 years, 7 months ago by etnu00
Modified:
10 years, 9 months ago
Reviewers:
shindig.remailer, awiner
Base URL:
http://svn.apache.org/repos/asf/incubator/shindig/trunk/
Visibility:
Public.

Patch Set 1 #

Total comments: 1

Patch Set 2 : Updated for bit rot #

Total comments: 15

Patch Set 3 : Minor tweaks #

Messages

Total messages: 7
etnu00
16 years, 7 months ago (2009-02-13 07:26:53 UTC) #1
Paul Lindner
Hi, I added in code that caches the results of calls to getMethods() in the ...
16 years, 7 months ago (2009-02-13 19:21:48 UTC) #2
etnu00
Updated for bit rot
16 years, 6 months ago (2009-03-17 00:30:25 UTC) #3
awiner
http://codereview.appspot.com/14088/diff/2001/3006 File java/common/src/main/java/org/apache/shindig/protocol/conversion/BeanJsonConverter.java (right): http://codereview.appspot.com/14088/diff/2001/3006#newcode77 Line 77: // Ensure consistent method ordering by using a ...
16 years, 6 months ago (2009-03-17 15:09:44 UTC) #4
etnu00
http://codereview.appspot.com/14088/diff/2001/3006 File java/common/src/main/java/org/apache/shindig/protocol/conversion/BeanJsonConverter.java (right): http://codereview.appspot.com/14088/diff/2001/3006#newcode77 Line 77: // Ensure consistent method ordering by using a ...
16 years, 6 months ago (2009-03-17 17:25:54 UTC) #5
etnu00
Minor tweaks
16 years, 6 months ago (2009-03-17 17:50:30 UTC) #6
awiner
16 years, 6 months ago (2009-03-17 20:24:04 UTC) #7
http://codereview.appspot.com/14088/diff/2001/3006
File
java/common/src/main/java/org/apache/shindig/protocol/conversion/BeanJsonConverter.java
(right):

http://codereview.appspot.com/14088/diff/2001/3006#newcode175
Line 175: } else if (Collection.class.isAssignableFrom(clazz)) {
On 2009/03/17 17:25:54, etnu00 wrote:
> On 2009/03/17 15:09:44, awiner wrote:
> > List<T> is missing
> 
> How so? Collection.class.isAssignableFrom should cover any collection type,
> including lists. Set is explicit because it's meaningfully different when
> requested, but if it wasn't requested explicitly, a List is the most accurate
> fall back type.

Good point.

http://codereview.appspot.com/14088/diff/2001/3006#newcode240
Line 240: Object out = injector.getInstance(Key.get(type));
On 2009/03/17 17:25:54, etnu00 wrote:
> On 2009/03/17 15:09:44, awiner wrote:
> > injector.getInstance(type);
> 
> getInstance doesn't work on Type, it works on Class<?>, or Key. I'd have to
cast
> to Class<?>, which would make parameterized type population break.

See line 239: this is a Class<?> here, not a Type.
Sign in to reply to this message.

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