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

Typo in DefaultTreeModel docs: askAllowsChildren instead of asksAllowsChildren

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Withdrawn
    • Icon: P4 P4
    • 19
    • client-libs
    • None
    • behavioral
    • minimal
    • Typo doc change...no code change.
    • Java API
    • SE

      Summary

      DefaultTreeModel.html#isLeaf refers to an "askAllowsChildren" attribute that doesn't exist which should point to "asksAllowsChildren"

      Problem

      DefaultTreeModel.html#isLeaf refers to an "askAllowsChildren" attribute that doesn't exist

      Solution

      DefaultTreeModel.html#isLeaf should point to "asksAllowsChildren" attribute.

      Specification

      share/classes/javax/swing/tree/DefaultTreeModel.java

        /**
            * Returns whether the specified node is a leaf node.
            * The way the test is performed depends on the
      -     * <code>askAllowsChildren</code> setting.
      +     * <code>asksAllowsChildren</code> setting.
            *
            * @param node the node to check
            * @return true if the node is a leaf node

            psadhukhan Prasanta Sadhukhan
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: