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

Change generic code

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 7.0.0
    • None
    • None
    • None

      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!

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

              Created:
              Updated:
              Resolved: