// This rule specifies wether an old Collection
API Vector
// can be returned from a method.
// Vector has been replaced with List which again is a
// Collection.
// There are 2 default List implementations
// - ArrayList
// - LinkedList
// Instead of using Vector one of those should be used and
// a type of List or Collection should be returned.
// Wrong
public Vector getMembers()
{
...
}
// Ok
public Collection getMembers()
...
// or
public Collection getMembers()
...