Skip to content

Commit

Permalink
Merge pull request square#2493 from positron/patch-1
Browse files Browse the repository at this point in the history
Fix CertificatePinner javadoc to use a Builder
  • Loading branch information
swankjesse committed Apr 20, 2016
2 parents bd22589 + 75c23dd commit b26ad3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions okhttp/src/main/java/okhttp3/CertificatePinner.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@
* CertificatePinner certificatePinner = new CertificatePinner.Builder()
* .add(hostname, "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=")
* .build();
* OkHttpClient client = new OkHttpClient();
* client.setCertificatePinner(certificatePinner);
* OkHttpClient client = OkHttpClient.Builder()
* .certificatePinner(certificatePinner)
* .build();
*
* Request request = new Request.Builder()
* .url("https://" + hostname)
Expand Down

0 comments on commit b26ad3e

Please sign in to comment.