Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4525846

Description of returns value for ArrributeSet.getAttribute should be more clear

XMLWordPrintable

    • b10
    • generic
    • generic
    • Not verified

      Description:


      http://java.sun.com/j2se/1.4/docs/api/javax/swing/text/Attribu
      teSet.html#getAttribute(java.lang.Object)


      getAttribute

      public Object getAttribute(Object key)

            Fetches the value of the given attribute. If the value
      is not found locally, the search is continued upward through
      the resolving parent (if one exists) until the
            value is either found or there are no more parents. If
      the value is not found, null is returned.

            Parameters:
                  key - the non-null key of the attribute binding
            Returns:
                  the value
                  
                  
      Presently, it reads as "the value". I would expect a longer
      and more clear explanation than what it is.

      May be like:

      Returns:

      the value of the attribute "null" as the default

            peterz Peter Zhelezniakov
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: