Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1729

Change generic code

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently, the return type of getChildren() is java.util.List<Component>
      But if we want to do the follow cast, it will cause compile error.
      List<Listheader> headers = (List<Listheader>)head.getChildren();

      Could you change the return type to List<? extends Component> ?
      It should retain the generic quality, and solve the problem above.
      And we also ask you to change all methods that generic like this.
      Thank you!

        Attachments

          Activity

            People

            Assignee:
            RaymondChao RaymondChao
            Reporter:
            karry karry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: