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

Issue 6312057: Use the @Key definition from the subclass (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 10 months ago by rmistry
Modified:
11 years, 9 months ago
Reviewers:
yanivi
Base URL:
https://google-http-java-client.googlecode.com/hg/
Visibility:
Public.

Description

To fix http://code.google.com/p/google-http-java-client/issues/detail?id=17 : When a subclass with a field annotated with @Key hides a superclass field annotated with @Key, prefer the definition from the subclass.

Patch Set 1 #

Patch Set 2 : Added more tests #

Patch Set 3 : Minor fix #

Total comments: 4

Patch Set 4 : review comments #

Patch Set 5 : minro fix #

Patch Set 6 : Minor fix #

Total comments: 2

Patch Set 7 : review comments #

Patch Set 8 : minor fix #

Patch Set 9 : minor fix #

Patch Set 10 : Minor fix #

Total comments: 2

Patch Set 11 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -8 lines) Patch
M google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -7 lines 0 comments Download
M google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java View 1 2 3 2 chunks +63 lines, -0 lines 0 comments Download
M google-http-client/src/test/java/com/google/api/client/util/ClassInfoTest.java View 1 2 3 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 8
rmistry
11 years, 10 months ago (2012-06-20 18:40:47 UTC) #1
yanivi
http://codereview.appspot.com/6312057/diff/4001/google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java File google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java (left): http://codereview.appspot.com/6312057/diff/4001/google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java#oldcode190 google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java:190: Preconditions.checkArgument(conflictingFieldInfo == null, no, we still want this check. ...
11 years, 9 months ago (2012-07-30 21:35:36 UTC) #2
rmistry
http://codereview.appspot.com/6312057/diff/4001/google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java File google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java (left): http://codereview.appspot.com/6312057/diff/4001/google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java#oldcode190 google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java:190: Preconditions.checkArgument(conflictingFieldInfo == null, On 2012/07/30 21:35:36, yanivi wrote: > ...
11 years, 9 months ago (2012-07-31 18:58:04 UTC) #3
yanivi
http://codereview.appspot.com/6312057/diff/7002/google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java File google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java (right): http://codereview.appspot.com/6312057/diff/7002/google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java#newcode179 google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java:179: if (superClass != null) { Maybe a slightly better ...
11 years, 9 months ago (2012-08-01 11:42:33 UTC) #4
rmistry
http://codereview.appspot.com/6312057/diff/7002/google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java File google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java (right): http://codereview.appspot.com/6312057/diff/7002/google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java#newcode179 google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java:179: if (superClass != null) { On 2012/08/01 11:42:33, yanivi ...
11 years, 9 months ago (2012-08-01 12:49:25 UTC) #5
yanivi
http://codereview.appspot.com/6312057/diff/13002/google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java File google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java (right): http://codereview.appspot.com/6312057/diff/13002/google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java#newcode195 google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java:195: for (Field field : superClass.getDeclaredFields()) { why such complicated ...
11 years, 9 months ago (2012-08-01 15:38:57 UTC) #6
rmistry
http://codereview.appspot.com/6312057/diff/13002/google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java File google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java (right): http://codereview.appspot.com/6312057/diff/13002/google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java#newcode195 google-http-client/src/main/java/com/google/api/client/util/ClassInfo.java:195: for (Field field : superClass.getDeclaredFields()) { On 2012/08/01 15:38:57, ...
11 years, 9 months ago (2012-08-01 16:16:16 UTC) #7
yanivi
11 years, 9 months ago (2012-08-01 16:27:05 UTC) #8
LGTM
Sign in to reply to this message.

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