Skip to content

Commit

Permalink
chore: fix warnings (#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo authored and chingor13 committed Nov 13, 2019
1 parent 1d37f32 commit a65e99a
Showing 1 changed file with 6 additions and 4 deletions.
Expand Up @@ -18,7 +18,6 @@
import com.google.api.client.http.EmptyContent;
import com.google.api.client.http.HttpMethods;
import com.google.api.client.http.HttpRequest;
import com.google.api.client.http.HttpRequestInitializer;
import com.google.api.client.http.HttpResponseException;
import com.google.api.client.http.HttpStatusCodes;
import com.google.api.client.http.HttpTransport;
Expand Down Expand Up @@ -290,9 +289,12 @@ public LowLevelHttpRequest buildRequest(final String method, final String url) {
return new MockLowLevelHttpRequest() {
@Override
public LowLevelHttpResponse execute() {
return new MockLowLevelHttpResponse().setContentEncoding("gzip").setContent(new ByteArrayInputStream(
BaseEncoding.base64()
.decode("H4sIAAAAAAAAAPNIzcnJV3DPz0/PSVVwzskvTVEILskvSkxPVQQA/LySchsAAAA=")));
byte[] data = BaseEncoding.base64().decode(
"H4sIAAAAAAAAAPNIzcnJV3DPz0/PSVVwzskvTVEILskvSkxPVQQA/LySchsAAAA=");
ByteArrayInputStream content = new ByteArrayInputStream(data);
return new MockLowLevelHttpResponse()
.setContentEncoding("gzip")
.setContent(content);
}
};
}
Expand Down

0 comments on commit a65e99a

Please sign in to comment.