java-diff-utils icon indicating copy to clipboard operation
java-diff-utils copied to clipboard

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

Open GoogleCodeExporter opened this issue 9 years ago • 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 [email protected] on 16 Jun 2013 at 6:44

GoogleCodeExporter avatar Feb 28 '16 10:02 GoogleCodeExporter