< prev index next >

src/java.base/share/classes/sun/text/normalizer/ICUBinary.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -32,28 +32,23 @@
 
 package sun.text.normalizer;
 
 import java.io.BufferedInputStream;
 import java.io.DataInputStream;
-import java.io.File;
-import java.io.FileInputStream;
 import java.io.InputStream;
 import java.io.IOException;
 import java.io.UncheckedIOException;
-import java.net.URL;
 import java.nio.ByteBuffer;
 import java.nio.ByteOrder;
-import java.nio.channels.FileChannel;
-import java.nio.file.FileSystems;
 import java.util.Arrays;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
 
 public final class ICUBinary {
 
     private static final class IsAcceptable implements Authenticate {
-        // @Override when we switch to Java 6
+        @Override
         public boolean isDataVersionAcceptable(byte version[]) {
             return version[0] == 1;
         }
     }
 

@@ -91,11 +86,11 @@
                 }
             })) {
 
             BufferedInputStream b=new BufferedInputStream(is, 4096 /* data buffer size */);
             DataInputStream inputStream = new DataInputStream(b);
-            byte[] bb = new byte[120000];
+            byte[] bb = new byte[130000];
             int n = inputStream.read(bb);
             ByteBuffer bytes = ByteBuffer.wrap(bb, 0, n);
             return bytes;
         }
         catch (IOException e) {
< prev index next >