changeset 8150:bc718f9aa45d

8061826: Part of JDK-8060474 should be reverted Reviewed-by: mullan, ahgross Contributed-by: weijun.wang@oracle.com
author igerasim
date Thu, 23 Oct 2014 12:35:02 +0400
parents 517c80378ece
children ac8cca8ec90c
files src/share/classes/sun/security/krb5/internal/ktab/KeyTabInputStream.java src/share/classes/sun/security/krb5/internal/util/KrbDataInputStream.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/krb5/internal/ktab/KeyTabInputStream.java	Wed Oct 22 10:23:55 2014 +0400
+++ b/src/share/classes/sun/security/krb5/internal/ktab/KeyTabInputStream.java	Thu Oct 23 12:35:02 2014 +0400
@@ -58,7 +58,7 @@
      * Reads the number of bytes this entry data occupy.
      */
     int readEntryLength() throws IOException {
-        return readLength4();
+        return read(4);
     }
 
 
--- a/src/share/classes/sun/security/krb5/internal/util/KrbDataInputStream.java	Wed Oct 22 10:23:55 2014 +0400
+++ b/src/share/classes/sun/security/krb5/internal/util/KrbDataInputStream.java	Thu Oct 23 12:35:02 2014 +0400
@@ -82,7 +82,7 @@
         byte[] bytes = new byte[num];
         if (read(bytes, 0, num) != num) {
             throw new IOException("Premature end of stream reached");
-        };
+        }
         int result = 0;
         for (int i = 0; i < num; i++) {
             if (bigEndian) {