dnaumenko/java-diff-utils

Delta.applyTo and Delta.restore take List<Object> which causes generics problems

Opened this issue · 0 comments

The two methods:

public abstract void applyTo(List<Object> target) 
public abstract void restore(List<Object> target);

Take List<Object> as a param, whereas most other things use List<?>. the former 
doesn't allow lists of anything other that Objects (no subclasses) whereas the 
later allows anything (subclasses of Object). This makes the class pretty 
inflexible, and means everything has to be copied to an Object that treats its 
contents only as Objects.

Original issue reported on code.google.com by l...@leocrawford.org.uk on 16 Jun 2013 at 6:44