classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: Tiny Throwable StaticData optimization


From: Mark Wielaard
Subject: [cp-patches] FYI: Tiny Throwable StaticData optimization
Date: Sun, 26 Sep 2004 19:03:30 +0200

Hi,

When printing a Throwable we get the line separator from the StaticData
inner class. By making the nl field of this inner class package local a
byte code compiler doesn't have to generate a accessor method for this
field.

2004-09-26  Mark Wielaard  <address@hidden>

        * java/lang/Throwable.java (StaticData.nl): Make package private.

Committed,

Mark
Index: java/lang/Throwable.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/lang/Throwable.java,v
retrieving revision 1.24
diff -u -r1.24 Throwable.java
--- java/lang/Throwable.java    20 May 2004 14:35:17 -0000      1.24
+++ java/lang/Throwable.java    26 Sep 2004 17:00:06 -0000
@@ -402,7 +402,7 @@
   private static class StaticData
   {
 
-    private final static String nl;
+    final static String nl;
 
     static
     {

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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