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

@ -120,6 +120,7 @@ public class JarInputStream extends ZipInputStream {
* it is signed.
* @throws IOException if an I/O error has occurred
*/
@SuppressWarnings("this-escape")
public JarInputStream(InputStream in, boolean verify) throws IOException {
super(in);
this.doVerify = verify;

View file

@ -53,6 +53,7 @@ public class JarOutputStream extends ZipOutputStream {
* @param man the optional {@code Manifest}
* @throws IOException if an I/O error has occurred
*/
@SuppressWarnings("this-escape")
public JarOutputStream(OutputStream out, Manifest man) throws IOException {
super(out);
if (man == null) {

View file

@ -73,6 +73,7 @@ public class Manifest implements Cloneable {
* @param is the input stream containing manifest data
* @throws IOException if an I/O error has occurred
*/
@SuppressWarnings("this-escape")
public Manifest(InputStream is) throws IOException {
this(null, is, null);
}