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

Typos in CardTerminals.list(CardTerminals.State) javadoc

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 6
    • security-libs

        The javadoc for the CardTerminals.list(CardTerminals.State) method at:
          /java/re/jdk/6.0/promoted/rc/b98/docs/jre/api/security/smartcardio/spec/javax/smartcardio/CardTerminals.html#list(javax.smartcardio.CardTerminals.State)
        contains typos:

          ---Excerpt-from-spec---
           public abstract List<CardTerminal> list(CardTerminals.State state)
                                         throws CardException

             Returns an unmodifiable list of all terminals matching the specified state.
             ...
            Parameters:
                state - the State
            Returns:
                an unmodifiable list of all terminals matching the
                specified attribute.
                          ^^^^^^^^^
            Throws:
                NullPointerException - if attr is null
                                          ^^^^
             ...
          ---End-of-excerpt---

        It seems that "state" word is more appropriate here than "attribute"/"attr".

              mullan Sean Mullan
              ygaevsky Yuri Gaevsky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: