relaxed reponse builder as sometimes servers mistakenly do not include a message in the http response

This commit is contained in:
Adrian Cole 2011-02-26 10:19:49 -08:00
parent 9e7dbc5612
commit 06355017b0
1 changed files with 1 additions and 3 deletions

View File

@ -19,8 +19,6 @@
package org.jclouds.http; package org.jclouds.http;
import static com.google.common.base.Preconditions.checkNotNull;
import javax.annotation.Nullable; import javax.annotation.Nullable;
import org.jclouds.io.Payload; import org.jclouds.io.Payload;
@ -43,7 +41,7 @@ public class HttpResponse extends HttpMessage {
private String message; private String message;
public Builder message(String message) { public Builder message(String message) {
this.message = checkNotNull(message, "message"); this.message = message;
return this; return this;
} }