classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Patch: FYI: avoid accessor constructor


From: Tom Tromey
Subject: [cp-patches] Patch: FYI: avoid accessor constructor
Date: 23 Apr 2005 16:00:02 -0600

I'm checking this in.

This avoids an accessor constructor in javax.swing.text.

Tom

Index: ChangeLog
from  Tom Tromey  <address@hidden>

        * javax/swing/text/StyleConstants.java (StyleConstants): Now
        package-private.

Index: javax/swing/text/StyleConstants.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/StyleConstants.java,v
retrieving revision 1.4
diff -u -r1.4 StyleConstants.java
--- javax/swing/text/StyleConstants.java 25 Oct 2004 10:37:36 -0000 1.4
+++ javax/swing/text/StyleConstants.java 23 Apr 2005 22:01:23 -0000
@@ -1,5 +1,5 @@
 /* StyleConstants.java --
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2005 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -83,8 +83,10 @@
   public static final Object ResolveAttribute = new StyleConstants("resolver");
 
   String keyname;
-  
-  private StyleConstants(String k) 
+
+  // Package-private to avoid accessor constructor for use by
+  // subclasses.
+  StyleConstants(String k) 
   {
     keyname = k;
   }




reply via email to

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