This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: remove `final' hack in String.toString()


Now that we have a fix for PR/2, we don't need this dumb hack in
String.java. Checked in.

  [ bryce ]


Index: String.java
2000-04-28  Bryce McKinlay  <bryce@albatross.co.nz>

	* libjava/java/lang/String.java (toString): Remove `final' hack.

===================================================================
RCS file: /cvs/java/libgcj/libjava/java/lang/String.java,v
retrieving revision 1.6
diff -u -r1.6 String.java
--- String.java	2000/04/12 20:45:59	1.6
+++ String.java	2000/04/28 07:49:23
@@ -115,9 +115,6 @@
 
   public String toString ()
   {
-    // because String is final, we actually get this far on a null reference
-    if (this == null)
-      throw new NullPointerException();
     return this;
   }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]