diff --git a/retrofit/src/main/java/retrofit2/http/Multipart.java b/retrofit/src/main/java/retrofit2/http/Multipart.java index c2b05ab0eb..f466fa912b 100644 --- a/retrofit/src/main/java/retrofit2/http/Multipart.java +++ b/retrofit/src/main/java/retrofit2/http/Multipart.java @@ -32,9 +32,8 @@ @Target(METHOD) @Retention(RUNTIME) public @interface Multipart { - /** - * Sets the type(MediaType) on MultipartBody. When calling the - */ - - String type() default "multipart/form-data"; + /** + * Sets the type(MediaType) on MultipartBody. When calling the + */ + String type() default "multipart/form-data"; } diff --git a/retrofit/src/test/java/retrofit2/RequestFactoryTest.java b/retrofit/src/test/java/retrofit2/RequestFactoryTest.java index 4b9dd13bbf..7bf2ad6b35 100644 --- a/retrofit/src/test/java/retrofit2/RequestFactoryTest.java +++ b/retrofit/src/test/java/retrofit2/RequestFactoryTest.java @@ -3291,7 +3291,6 @@ Call method(@Part("ping") String ping, @Part("kit") RequestBody ki return null; } } - try { buildRequest(Example.class, "pong", RequestBody.create(TEXT_PLAIN, "kat")); fail();