8325189: Enable this-escape javac warning in java.base

Reviewed-by: alanb, erikj, naoto, smarks, ihse, joehw, lancea, weijun
This commit is contained in:
Joe Darcy 2024-02-07 20:05:11 +00:00
parent 299a8ee68d
commit fbd15b2087
93 changed files with 151 additions and 2 deletions

View file

@ -123,6 +123,7 @@ public class AlgorithmId implements Serializable, DerEncoder {
* @param oid the identifier for the algorithm.
* @param params the associated algorithm parameters, can be null.
*/
@SuppressWarnings("this-escape")
public AlgorithmId(ObjectIdentifier oid, DerValue params)
throws IOException {
this.algid = oid;

View file

@ -52,6 +52,7 @@ public class GeneralNames {
* @param derVal the DerValue to construct the GeneralNames from.
* @exception IOException on error.
*/
@SuppressWarnings("this-escape")
public GeneralNames(DerValue derVal) throws IOException {
this();
if (derVal.tag != DerValue.tag_Sequence) {

View file

@ -70,6 +70,7 @@ public class GeneralSubtrees implements Cloneable, DerEncoder {
*
* @param val the DER encoded form of the same.
*/
@SuppressWarnings("this-escape")
public GeneralSubtrees(DerValue val) throws IOException {
this();
if (val.tag != DerValue.tag_Sequence) {

View file

@ -50,6 +50,7 @@ public class RFC822Name implements GeneralNameInterface
* @param derValue the encoded DER RFC822Name.
* @exception IOException on error.
*/
@SuppressWarnings("this-escape")
public RFC822Name(DerValue derValue) throws IOException {
name = derValue.getIA5String();
parseName(name);
@ -61,6 +62,7 @@ public class RFC822Name implements GeneralNameInterface
* @param name the RFC822Name.
* @throws IOException on invalid input name
*/
@SuppressWarnings("this-escape")
public RFC822Name(String name) throws IOException {
parseName(name);
this.name = name;

View file

@ -125,6 +125,7 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
*
* @exception CRLException on parsing/construction errors.
*/
@SuppressWarnings("this-escape")
public TBSCertList(X500Name issuer, Date thisDate, Date nextDate,
X509CRLEntry[] badCerts)
throws CRLException
@ -175,6 +176,7 @@ public class X509CRLImpl extends X509CRL implements DerEncoder {
/**
* Constructs from the encoding.
*/
@SuppressWarnings("this-escape")
public TBSCertList(DerValue value) throws IOException, CRLException {
if (value.tag != DerValue.tag_Sequence)