提交 2027fe12 编写于 作者: J Jake Wharton

Changes to make JDK 8 doclint happy.

上级 05d6797c
......@@ -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;
......
......@@ -98,9 +98,10 @@ import rx.schedulers.Schedulers;
* <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>
......
......@@ -31,7 +31,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* <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
......
......@@ -27,7 +27,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* <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.
......
......@@ -31,7 +31,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
* 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}.
......
......@@ -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>
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册