8000 Reduce PR surface. · Geisirc/google-http-java-client@eb7b529 · GitHub
[go: up one dir, main page]

Skip to content

Commit eb7b529

Browse files
Matt Whisenhnuntmattwhisenhunt
authored andcommitted
Reduce PR surface.
1 parent 65fca76 commit eb7b529

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

google-http-client/src/main/java/com/google/api/client/http/apache/ApacheHttpTransport.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ public static final class Builder {
277277
* </p>
278278
*
279279
* <pre>
280-
setProxy(new HttpHost("127.0.0.1", 8080))
280+
setProxy(new HttpHost("127.0.0.1", 8080))
281281
* </pre>
282282
*/
283283
public Builder setProxy(HttpHost proxy) {
@@ -313,7 +313,7 @@ public Builder setProxySelector(ProxySelector proxySelector) {
313313
* </p>
314314
*
315315
* <pre>
316-
trustCertificatesFromJavaKeyStore(new FileInputStream("certs.jks"), "password");
316+
trustCertificatesFromJavaKeyStore(new FileInputStream("certs.jks"), "password");
317317
* </pre>
318318
*
319319
* @param keyStoreStream input stream to the key store (closed at the end of this method in a
@@ -337,7 +337,7 @@ public Builder trustCertificatesFromJavaKeyStore(InputStream keyStoreStream, Str
337337
* </p>
338338
*
339339
* <pre>
340-
trustCertificatesFromStream(new FileInputStream("certs.pem"));
340+
trustCertificatesFromStream(new FileInputStream("certs.pem"));
341341
* </pre>
342342
*
343343
* @param certificateStream certificate stream

google-http-client/src/main/java/com/google/api/client/testing/http/apache/MockHttpClient.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,13 @@
5050
* @since 1.14
5151
* @author Yaniv Inbar
5252
*/
53-
@Deprecated
53+
@Beta
5454
public class MockHttpClient extends DefaultHttpClient {
5555

5656
/** HTTP response code to use. */
5757
int responseCode;
5858

5959
@Override
60-
@Deprecated
6160
protected RequestDirector createClientRequestDirector(HttpRequestExecutor requestExec,
6261
ClientConnectionManager conman, ConnectionReuseStrategy reustrat,
6362
ConnectionKeepAliveStrategy kastrat, HttpRoutePlanner rouplan, HttpProcessor httpProcessor,
@@ -74,13 +73,11 @@ public HttpResponse execute(HttpHost target, HttpRequest request, HttpContext co
7473
}
7574

7675
/** Returns the HTTP response code to use. */
77-
@Deprecated
7876
public final int getResponseCode() {
7977
return responseCode;
8078
}
8179

8280
/** Sets the HTTP response code to use. */
83-
@Deprecated
8481
public MockHttpClient setResponseCode(int responseCode) {
8582
Preconditions.checkArgument(responseCode >= 0);
8683
this.responseCode = responseCode;

0 commit comments

Comments
 (0)
0