#581 new check: ProducerExtendsConsumerSuper

Future
closed
nobody
Check (274)
5
2013-11-17
2011-09-23
Roman Ivanov
No

ProducerExtendsConsumerSuper.

Joshua Bloch "Effective java (2nd edition)" Item 28 page 138:
"
always use Comparable<? super T> in preference
to Comparable<T>. The same is true of comparators, so you should always
use Comparator<? super T> in preference to Comparator<T>.
"
as options:
- List of class names that are always producers. Default values for "Comparator|Comparable".
- list of class names that are always customers.

Discussion

  • Ivan Sopov
    Ivan Sopov
    2013-11-17

    • status: open --> closed
    • Group: --> Future