Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1376

Change signature of getXyz() methods in HasXyz interfaces

    • Icon: Suggestion Suggestion
    • Resolution: Won't Fix
    • open-source
    • Database
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Current signatures have <? extends X>, for example:

      List<? extends MethodInfo> getMethods()
      

      This works fine for Clover's internal data structures (as there are subclasses), but it's not usable by developers using this API. It should be possible to have an assignment like:

      List<HasMetrics> methodMetrics = classInfo.getMethods()
      

      Fix: change to <? super X>.

      Note: We may need to expose additional methods in interface. They could throw Exception("not implemented") or return nulls.

            [CLOV-1376] Change signature of getXyz() methods in HasXyz interfaces

            There are no comments yet on this issue.

              Unassigned Unassigned
              mparfianowicz Marek Parfianowicz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: