https://codereview.appspot.com/79890047/diff/1/google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java File google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java (right): https://codereview.appspot.com/79890047/diff/1/google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java#newcode92 google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java:92: defaultJsonFactory = new JacksonFactory(); do you want to do ...
11 years, 9 months ago
(2014-03-26 01:14:15 UTC)
#2
Fixed a code comment, applied one suggestion and responded to suggestion about reflection. https://codereview.appspot.com/79890047/diff/1/google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java File ...
11 years, 9 months ago
(2014-03-27 00:00:36 UTC)
#3
Fixed a code comment, applied one suggestion and responded to suggestion about
reflection.
https://codereview.appspot.com/79890047/diff/1/google-api-client/src/main/jav...
File
google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java
(right):
https://codereview.appspot.com/79890047/diff/1/google-api-client/src/main/jav...
google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java:92:
defaultJsonFactory = new JacksonFactory();
On 2014/03/26 01:14:15, beaton wrote:
> do you want to do anything crazy like use reflection to avoid the direct
> dependency?
I thought about this, but I would still lean towards making this a conventional
compile-time dependency. We don't have a simple fallback to make it work if it
can't be loaded, and this means a developer is more likely to discover the
dependency at build time than run time. Java's late resolution of types should
mean that this only affect run-time behavior if you trigger this code path.
https://codereview.appspot.com/79890047/diff/1/google-api-client/src/main/jav...
File
google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleCredential.java
(right):
https://codereview.appspot.com/79890047/diff/1/google-api-client/src/main/jav...
google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/GoogleCredential.java:260:
return fromStream(
On 2014/03/26 01:14:15, beaton wrote:
> indent 2 spaces
Done.
LGTM. https://codereview.appspot.com/79890047/diff/1/google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java File google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java (right): https://codereview.appspot.com/79890047/diff/1/google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java#newcode92 google-api-client/src/main/java/com/google/api/client/googleapis/GoogleUtils.java:92: defaultJsonFactory = new JacksonFactory(); That makes sense. You ...
11 years, 9 months ago
(2014-03-27 02:01:22 UTC)
#4
Processed the last comment, fix a findbugs issue with threading and applied the Beta attribute. ...
11 years, 9 months ago
(2014-03-27 20:43:31 UTC)
#5
Processed the last comment, fix a findbugs issue with threading and applied the
Beta attribute. Note that I rebased from the dependent change, so the relative
deltas are inaccurate, but the absolute delta is OK.
Issue 79890047: Defaults for JsonFactory and HttpTransport and use by GoogleCredential.
(Closed)
Created 11 years, 9 months ago by Anthony Moore
Modified 11 years, 8 months ago
Reviewers: wonderfly, Orest, beaton
Base URL: https://code.google.com/p/google-api-java-client/
Comments: 11