< prev index next >

src/java.base/share/classes/java/util/jar/JarVerifier.java

Print this page

        

@@ -80,22 +80,22 @@
 
     /** The ManifestDigester object */
     private volatile ManifestDigester manDig;
 
     /** the bytes for the manDig object */
-    byte manifestRawBytes[] = null;
+    byte[] manifestRawBytes = null;
 
     /** controls eager signature validation */
     boolean eagerValidation;
 
     /** makes code source singleton instances unique to us */
     private Object csdomain = new Object();
 
     /** collect -DIGEST-MANIFEST values for blacklist */
     private List<Object> manifestDigests;
 
-    public JarVerifier(byte rawBytes[]) {
+    public JarVerifier(byte[] rawBytes) {
         manifestRawBytes = rawBytes;
         sigFileSigners = new Hashtable<>();
         verifiedSigners = new Hashtable<>();
         sigFileData = new Hashtable<>(11);
         pendingBlocks = new ArrayList<>();

@@ -255,11 +255,11 @@
                 String uname = mev.getEntry().getName()
                                              .toUpperCase(Locale.ENGLISH);
 
                 if (uname.endsWith(".SF")) {
                     String key = uname.substring(0, uname.length()-3);
-                    byte bytes[] = baos.toByteArray();
+                    byte[] bytes = baos.toByteArray();
                     // add to sigFileData in case future blocks need it
                     sigFileData.put(key, bytes);
                     // check pending blocks, we can now process
                     // anyone waiting for this .SF file
                     for (SignatureFileVerifier sfv : pendingBlocks) {

@@ -459,11 +459,11 @@
             } else {
                 return -1;
             }
         }
 
-        public int read(byte b[], int off, int len) throws IOException {
+        public int read(byte[] b, int off, int len) throws IOException {
             ensureOpen();
             if ((numLeft > 0) && (numLeft < len)) {
                 len = (int)numLeft;
             }
 
< prev index next >