src/share/classes/java/lang/String.java

Print this page

        

@@ -1243,10 +1243,13 @@
                     }
                 }
             }
             return n1 - n2;
         }
+        
+        /** Replaces the de-serialized object. */
+        private Object readResolve() { return CASE_INSENSITIVE_ORDER; }
     }
 
     /**
      * Compares two strings lexicographically, ignoring case
      * differences. This method returns an integer whose sign is that of