Prefer List/Map/Set as declaring type over their implementations
Unless your are using a method declared in subclasses of an interface, it is better to use the interface as declaring type. One advantage of this is that changing used implementation will be much simpler (you will have less declarations to edit).
Showing
Please
register
or
sign in
to comment