jcarty / java-diff-utils

Automatically exported from code.google.com/p/java-diff-utils
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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