Mark HttpException.response() as nullable
If the exception was serialized this value is not retained.
*/
package retrofit2;
+import javax.annotation.Nullable;
+
import static retrofit2.Utils.checkNotNull;
/** Exception for an unexpected, non-2xx HTTP response. */
@@ -48,7 +50,7 @@ public class HttpException extends RuntimeException {
/**
* The full HTTP response. This may be null if the exception was serialized.
*/
- public Response<?> response() {
+ public @Nullable Response<?> response() {
return response;
}
}
