/**
* Filter that reduces a collection to a {@link Set}, removing duplicates.
- *
- * @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
public class UniqueElementFilter implements Filter {
if (!(data instanceof Collection<?>)) {
return data;
}
- return new HashSet<Object>((Collection<?>) data);
+ return new HashSet<>((Collection<?>) data);
}
}