Wicket
  1. Wicket
  2. WICKET-4329

Optimize consequent usages of MarkupContainer# hasAssociatedMarkup() and #getAssociatedMapkup()

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.3
    • Fix Version/s: 1.5.4, 6.0.0-beta1
    • Component/s: wicket
    • Labels:
      None

      Description

      There are few places where #getAssociatedMarkup() is called immediately after #hasAssociatedMarkup().
      Since #hasAssociatedMapkup() just does: return #getAssociatedMarkup() != null, it can be optimized by just calling #getAssociatedMarkup() and check for null.

        Activity

        Martin Grigorov made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Martin Grigorov [ mgrigorov ]
        Resolution Fixed [ 1 ]
        Martin Grigorov created issue -

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Martin Grigorov
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development