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

Change generic code

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Done
    • Normal
    • 7.0.0
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: