8290861: Remove unused field URLJarFile.BUF_SIZE

Reviewed-by: jpai, djelinski, aefimov
This commit is contained in:
Andrey Turbanov 2022-07-22 15:55:58 +00:00
parent b28f9dab80
commit 62f22633d1

@ -37,7 +37,6 @@ import java.util.zip.ZipEntry;
import java.security.CodeSigner; import java.security.CodeSigner;
import java.security.cert.Certificate; import java.security.cert.Certificate;
import java.security.AccessController; import java.security.AccessController;
import java.security.PrivilegedAction;
import java.security.PrivilegedExceptionAction; import java.security.PrivilegedExceptionAction;
import java.security.PrivilegedActionException; import java.security.PrivilegedActionException;
import sun.net.www.ParseUtil; import sun.net.www.ParseUtil;
@ -54,8 +53,6 @@ public class URLJarFile extends JarFile {
/* Controller of the Jar File's closing */ /* Controller of the Jar File's closing */
private URLJarFileCloseController closeController = null; private URLJarFileCloseController closeController = null;
private static int BUF_SIZE = 2048;
private Manifest superMan; private Manifest superMan;
private Attributes superAttr; private Attributes superAttr;
private Map<String, Attributes> superEntries; private Map<String, Attributes> superEntries;
@ -165,7 +162,7 @@ public class URLJarFile extends JarFile {
/* If close controller is set the notify the controller about the pending close */ /* If close controller is set the notify the controller about the pending close */
public void close() throws IOException { public void close() throws IOException {
if (closeController != null) { if (closeController != null) {
closeController.close(this); closeController.close(this);
} }
super.close(); super.close();
} }
@ -189,8 +186,8 @@ public class URLJarFile extends JarFile {
* Given a URL, retrieves a JAR file, caches it to disk, and creates a * Given a URL, retrieves a JAR file, caches it to disk, and creates a
* cached JAR file object. * cached JAR file object.
*/ */
@SuppressWarnings("removal") @SuppressWarnings("removal")
private static JarFile retrieve(final URL url, final URLJarFileCloseController closeController) throws IOException { private static JarFile retrieve(final URL url, final URLJarFileCloseController closeController) throws IOException {
/* /*
* See if interface is set, then call retrieve function of the class * See if interface is set, then call retrieve function of the class
* that implements URLJarFileCallBack interface (sun.plugin - to * that implements URLJarFileCallBack interface (sun.plugin - to
@ -253,7 +250,7 @@ public class URLJarFile extends JarFile {
URLJarFileEntry(JarEntry je) { URLJarFileEntry(JarEntry je) {
super(je); super(je);
this.je=je; this.je = je;
} }
public Attributes getAttributes() throws IOException { public Attributes getAttributes() throws IOException {