mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue