jdk/src/share/classes/sun/io/CharToByteDBCS_EBCDIC.java
changeset 3714 6a4eb8f53f91
parent 2921 d9d491a5a169
child 5506 202f599c92aa
--- a/jdk/src/share/classes/sun/io/CharToByteDBCS_EBCDIC.java	Fri Aug 28 16:53:44 2009 -0700
+++ b/jdk/src/share/classes/sun/io/CharToByteDBCS_EBCDIC.java	Mon Aug 31 15:00:04 2009 -0700
@@ -108,7 +108,7 @@
            }
 
            // Is this a high surrogate?
-           if (Surrogate.isHigh(inputChar)) {
+           if (Character.isHighSurrogate(inputChar)) {
               // Is this the last character of the input?
               if (charOff + inputSize >= inEnd) {
                  highHalfZoneCode = inputChar;
@@ -118,7 +118,7 @@
 
               // Is there a low surrogate following?
               inputChar = input[charOff + inputSize];
-              if (Surrogate.isLow(inputChar)) {
+              if (Character.isLowSurrogate(inputChar)) {
                  // We have a valid surrogate pair.  Too bad we don't do
                  // surrogates.  Is substitution enabled?
                  if (subMode) {
@@ -142,7 +142,7 @@
               }
            }
            // Is this an unaccompanied low surrogate?
-           else if (Surrogate.isLow(inputChar)) {
+           else if (Character.isLowSurrogate(inputChar)) {
                badInputLength = 1;
                throw new MalformedInputException();
            } else {