Skip to content

Commit

Permalink
Changes to make JDK 8 doclint happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Mar 21, 2014
1 parent 05d6797 commit 2027fe1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion retrofit/src/main/java/retrofit/ErrorHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public interface ErrorHandler {
* class MyErrorHandler implements ErrorHandler {
* @Override public Throwable handleError(RetrofitError cause) {
* Response r = cause.getResponse();
* if (r != null && r.getStatus() == 401) {
* if (r != null && r.getStatus() == 401) {
* return new UnauthorizedException(cause);
* }
* return cause;
Expand Down
5 changes: 3 additions & 2 deletions retrofit/src/main/java/retrofit/RestAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@
* <pre>
* public interface MyApi {
* &#64;POST("/category/{cat}") // Asynchronous execution.
* void categoryList(@Path("cat") String a, @Query("page") int b, Callback&lt;List&lt;Item>> cb);
* void categoryList(@Path("cat") String a, @Query("page") int b,
* Callback&lt;List&lt;Item&gt;&gt; cb);
* &#64;POST("/category/{cat}") // Synchronous execution.
* List&lt;Item> categoryList(@Path("cat") String a, @Query("page") int b);
* List&lt;Item&gt; categoryList(@Path("cat") String a, @Query("page") int b);
* }
* </pre>
* <p>
Expand Down
2 changes: 1 addition & 1 deletion retrofit/src/main/java/retrofit/http/FieldMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* <pre>
* &#64;FormUrlEncoded
* &#64;POST("/things")
* void things(@FieldMap Map<String, String> fields);
* void things(@FieldMap Map&lt;String, String&gt; fields);
* }
* </pre>
* Calling with {@code foo.things(ImmutableMap.of("foo", "bar", "kit", "kat")} yields a request
Expand Down
2 changes: 1 addition & 1 deletion retrofit/src/main/java/retrofit/http/Header.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* <p>
* <pre>
* &#64;GET("/")
* void foo(@Header("Accept-Language") String lang, Callback&lt;Response> cb);
* void foo(@Header("Accept-Language") String lang, Callback&lt;Response&gt; cb);
* </pre>
* <p>
* Header parameters may be {@code null} which will omit them from the request.
Expand Down
2 changes: 1 addition & 1 deletion retrofit/src/main/java/retrofit/http/QueryMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* Simple Example:
* <pre>
* &#64;GET("/search")
* void list(@QueryMap Map<String, String> filters);
* void list(@QueryMap Map&lt;String, String&gt; filters);
* </pre>
* Calling with {@code foo.list(ImmutableMap.of("foo", "bar", "kit", "kat"))} yields
* {@code /search?foo=bar&kit=kat}.
Expand Down
2 changes: 1 addition & 1 deletion retrofit/src/main/java/retrofit/package-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* <pre>
* public interface GitHubService {
* &#64;GET("/users/{user}/repos")
* List<Repo> listRepos(@Path("user") String user);
* List&lt;Repo&gt; listRepos(@Path("user") String user);
* }
* </pre>
*/
Expand Down

0 comments on commit 2027fe1

Please sign in to comment.