classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: FYI: avoid a trampoline constructor


From: Tom Tromey
Subject: [cp-patches] Patch: FYI: avoid a trampoline constructor
Date: 08 Nov 2004 15:59:34 -0700

I'm checking this in.

This lets us avoid another trampoline constructor.

Tom

Index: ChangeLog
from  Tom Tromey  <address@hidden>

        * java/io/PrintStream.java (ForwardStream): New constructor.

Index: java/io/PrintStream.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/io/PrintStream.java,v
retrieving revision 1.20
diff -u -r1.20 PrintStream.java
--- java/io/PrintStream.java 11 Oct 2004 14:08:07 -0000 1.20
+++ java/io/PrintStream.java 8 Nov 2004 23:02:51 -0000
@@ -87,6 +87,11 @@
    */
   private class ForwardStream extends OutputStream
   {
+    // This is package-private to avoid a trampoline constructor.
+    ForwardStream ()
+    {
+    }
+
     public void close () throws IOException
     {
       out.close ();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]