On 8/19/11 11:54 AM, [email protected] wrote:
+ public Evaluator(List<? extends EvaluationSampleListener<T>> listeners) {
if(listeners != null) {
this.listeners = Collections.unmodifiableList(listeners);
}
We need to make a copy here, otherwise a user can still modify the list, the unmodifiableList only prevents the Evaluator object from changing the List. Jörn
