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

Issue 9727043: [1.15 and default] Convert negative status code to zero (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by peleyal
Modified:
12 years, 6 months ago
Reviewers:
yanivi
CC:
ngmiceli
Base URL:
https://code.google.com/p/google-http-java-client/
Visibility:
Public.

Description

[1.15 and default] Convert negative status code to zero

Patch Set 1 #

Total comments: 6

Patch Set 2 : Yanivi comments #

Patch Set 3 : minor #

Patch Set 4 : minor #

Total comments: 4

Patch Set 5 : Yanivi comments 2 #

Total comments: 1

Patch Set 6 : upgrade warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -5 lines) Patch
M google-http-client/src/main/java/com/google/api/client/http/HttpResponse.java View 2 chunks +2 lines, -2 lines 0 comments Download
M google-http-client/src/main/java/com/google/api/client/http/LowLevelHttpResponse.java View 1 2 3 4 5 1 chunk +8 lines, -1 line 0 comments Download
M google-http-client/src/main/java/com/google/api/client/testing/http/MockLowLevelHttpResponse.java View 2 chunks +2 lines, -2 lines 0 comments Download
M google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 7
peleyal
12 years, 6 months ago (2013-05-24 13:53:39 UTC) #1
yanivi
Please change JavaDoc of LowLevelHttpResponse.getStatusCode() to specify that <= 0 is for none (not just ...
12 years, 6 months ago (2013-05-24 14:03:36 UTC) #2
peleyal
https://codereview.appspot.com/9727043/diff/1/google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java File google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java (right): https://codereview.appspot.com/9727043/diff/1/google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java#newcode108 google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java:108: MockLowLevelHttpResponse result = new MockLowLevelHttpResponse(); On 2013/05/24 14:03:36, yanivi ...
12 years, 6 months ago (2013-05-24 15:23:58 UTC) #3
yanivi
https://codereview.appspot.com/9727043/diff/1/google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java File google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java (right): https://codereview.appspot.com/9727043/diff/1/google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java#newcode108 google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java:108: MockLowLevelHttpResponse result = new MockLowLevelHttpResponse(); On 2013/05/24 15:23:58, peleyal ...
12 years, 6 months ago (2013-05-24 17:09:17 UTC) #4
peleyal
https://codereview.appspot.com/9727043/diff/1/google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java File google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java (right): https://codereview.appspot.com/9727043/diff/1/google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java#newcode108 google-http-client/src/test/java/com/google/api/client/http/HttpResponseTest.java:108: MockLowLevelHttpResponse result = new MockLowLevelHttpResponse(); On 2013/05/24 17:09:17, yanivi ...
12 years, 6 months ago (2013-05-24 18:46:17 UTC) #5
yanivi
LGTM https://codereview.appspot.com/9727043/diff/18001/google-http-client/src/main/java/com/google/api/client/http/LowLevelHttpResponse.java File google-http-client/src/main/java/com/google/api/client/http/LowLevelHttpResponse.java (right): https://codereview.appspot.com/9727043/diff/18001/google-http-client/src/main/java/com/google/api/client/http/LowLevelHttpResponse.java#newcode57 google-http-client/src/main/java/com/google/api/client/http/LowLevelHttpResponse.java:57: /** Returns the response status code or {@code ...
12 years, 6 months ago (2013-05-30 18:14:09 UTC) #6
yanivi
12 years, 6 months ago (2013-05-30 18:30:20 UTC) #7
LGTM
Sign in to reply to this message.

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