Skip to content

Commit b1b84e4

Browse files
authored
remove deprecated methods (#769)
* remove deprecated methods * ignore differences
1 parent 24b0d17 commit b1b84e4

File tree

2 files changed

+10
-34
lines changed

2 files changed

+10
-34
lines changed

clirr-ignored-differences.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html -->
3-
43
<differences>
4+
<difference>
5+
<differenceType>7002</differenceType>
6+
<className>com/google/api/client/json/webtoken/*</className>
7+
<method>java.lang.String getX509Certificate()</method>
8+
</difference>
9+
<difference>
10+
<differenceType>7002</differenceType>
11+
<className>com/google/api/client/json/webtoken/*</className>
12+
<method>com.google.api.client.json.webtoken.JsonWebSignature$Header setX509Certificate(java.lang.String)</method>
13+
</difference>
514
<difference>
615
<differenceType>7002</differenceType>
716
<className>com/google/api/client/testing/http/MockHttpTransport</className>

google-http-client/src/main/java/com/google/api/client/json/webtoken/JsonWebSignature.java

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -277,21 +277,6 @@ public Header setX509Thumbprint(String x509Thumbprint) {
277277
return this;
278278
}
279279

280-
/**
281-
* Returns the X.509 certificate chain header parameter contains the X.509 public key
282-
* certificate or corresponding to the key used to digitally sign the JWS or {@code null} for
283-
* none.
284-
*
285-
* <p>@deprecated Since release 1.19.1, replaced by {@link #getX509Certificates()}.
286-
*/
287-
@Deprecated
288-
public final String getX509Certificate() {
289-
if (x509Certificates == null || x509Certificates.isEmpty()) {
290-
return null;
291-
}
292-
return x509Certificates.get(0);
293-
}
294-
295280
/**
296281
* Returns the X.509 certificate chain header parameter contains the X.509 public key
297282
* certificate or certificate chain corresponding to the key used to digitally sign the JWS or
@@ -303,24 +288,6 @@ public final List<String> getX509Certificates() {
303288
return new ArrayList<>(x509Certificates);
304289
}
305290

306-
/**
307-
* Sets the X.509 certificate chain header parameter contains the X.509 public key certificate
308-
* corresponding to the key used to digitally sign the JWS or {@code null} for none.
309-
*
310-
* <p>Overriding is only supported for the purpose of calling the super implementation and
311-
* changing the return type, but nothing else.
312-
*
313-
* <p>@deprecated Since release 1.19.1, replaced by {@link #setX509Certificates(List
314-
* x509Certificates)}.
315-
*/
316-
@Deprecated
317-
public Header setX509Certificate(String x509Certificate) {
318-
ArrayList<String> x509Certificates = new ArrayList<String>();
319-
x509Certificates.add(x509Certificate);
320-
this.x509Certificates = x509Certificates;
321-
return this;
322-
}
323-
324291
/**
325292
* Sets the X.509 certificate chain header parameter contains the X.509 public key certificate
326293
* or certificate chain corresponding to the key used to digitally sign the JWS or {@code null}

0 commit comments

Comments
 (0)