mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8325189
: Enable this-escape javac warning in java.base
Reviewed-by: alanb, erikj, naoto, smarks, ihse, joehw, lancea, weijun
This commit is contained in:
parent
299a8ee68d
commit
fbd15b2087
93 changed files with 151 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue