This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: remove `final' hack in String.toString()
- To: java-patches at sourceware dot cygnus dot com
- Subject: Patch: remove `final' hack in String.toString()
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Fri, 28 Apr 2000 20:05:28 +1200
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;
}