classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: API doc fixes for UIDefaults


From: David Gilbert
Subject: [cp-patches] FYI: API doc fixes for UIDefaults
Date: Thu, 21 Jul 2005 09:39:47 +0000
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050426)

I committed this patch:

2005-07-20  David Gilbert  <address@hidden>

        * javax/swing/UIDefaults.java
        (getFont(Object, Locale)): matched argument name to API doc comment,
        (getColor(Object, Locale)): likewise,
        (getIcon(Object, Locale)): likewise,
        (getBorder(Object, Locale)): likewise,
        (getString(Object, Locale)): likewise,
        (getInt(Object, Locale)): likewise,
        (getBoolean(Object, Locale)): likewise,
        (getInsets(Object, Locale)): likewise,
        (getDimension(Object, Locale)): likewise.

Regards,

Dave Gilbert

Index: javax/swing/UIDefaults.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/UIDefaults.java,v
retrieving revision 1.21
diff -u -r1.21 UIDefaults.java
--- javax/swing/UIDefaults.java 13 Jul 2005 21:22:44 -0000      1.21
+++ javax/swing/UIDefaults.java 21 Jul 2005 08:31:33 -0000
@@ -421,9 +421,9 @@
    * @return the font entry for <code>key</code> or null if no such entry
    *     exists
    */
-  public Font getFont(Object key, Locale l)
+  public Font getFont(Object key, Locale locale)
   {
-    Object o = get(key, l);
+    Object o = get(key, locale);
     return o instanceof Font ? (Font) o : null;
   }
 
@@ -450,9 +450,9 @@
    * @return the color entry for <code>key</code> or null if no such entry
    *     exists
    */
-  public Color getColor(Object key, Locale l)
+  public Color getColor(Object key, Locale locale)
   {
-    Object o = get(key, l);
+    Object o = get(key, locale);
     return o instanceof Color ? (Color) o : null;
   }
 
@@ -479,9 +479,9 @@
    * @return the icon entry for <code>key</code> or null if no such entry
    *     exists
    */
-  public Icon getIcon(Object key, Locale l)
+  public Icon getIcon(Object key, Locale locale)
   {
-    Object o = get(key, l);
+    Object o = get(key, locale);
     return o instanceof Icon ? (Icon) o : null;
   }
 
@@ -508,9 +508,9 @@
    * @return the border entry for <code>key</code> or null if no such entry
    *     exists
    */
-  public Border getBorder(Object key, Locale l)
+  public Border getBorder(Object key, Locale locale)
   {
-    Object o = get(key, l);
+    Object o = get(key, locale);
     return o instanceof Border ? (Border) o : null;
   }
 
@@ -537,9 +537,9 @@
    * @return the string entry for <code>key</code> or null if no such entry
    *     exists
    */
-  public String getString(Object key, Locale l)
+  public String getString(Object key, Locale locale)
   {
-    Object o = get(key, l);
+    Object o = get(key, locale);
     return o instanceof String ? (String) o : null;
   }
 
@@ -566,9 +566,9 @@
    * @return the integer entry for <code>key</code> or null if no such entry
    *     exists
    */
-  public int getInt(Object key, Locale l)
+  public int getInt(Object key, Locale locale)
   {
-    Object o = get(key, l);
+    Object o = get(key, locale);
     return o instanceof Integer ? ((Integer) o).intValue() : 0;
   }
 
@@ -594,9 +594,9 @@
    * @return the boolean entry for <code>key</code> or null if no such entry
    *     exists
    */
-  public boolean getBoolean(Object key, Locale l)
+  public boolean getBoolean(Object key, Locale locale)
   {
-    return Boolean.TRUE.equals(get(key, l));
+    return Boolean.TRUE.equals(get(key, locale));
   }
 
   /**
@@ -622,9 +622,9 @@
    * @return the boolean entry for <code>key</code> or null if no such entry
    *     exists
    */
-  public Insets getInsets(Object key, Locale l) 
+  public Insets getInsets(Object key, Locale locale) 
   {
-    Object o = get(key, l);
+    Object o = get(key, locale);
     return o instanceof Insets ? (Insets) o : null;
   }
 
@@ -651,9 +651,9 @@
    * @return the boolean entry for <code>key</code> or null if no such entry
    *     exists
    */
-  public Dimension getDimension(Object key, Locale l) 
+  public Dimension getDimension(Object key, Locale locale) 
   {
-    Object o = get(key, l);
+    Object o = get(key, locale);
     return o instanceof Dimension ? (Dimension) o : null;
   }
 

reply via email to

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