Reports suspicious calls to Collection.toArray().

The following types of calls are considered suspicious:

Example:


void m1(List list) {
  Number[] ns = (Number[]) list.toArray(new String[0]);
}

void m2(List<Number> list) {
  Number[] ns = list.toArray(new String[0]);
}