Closed GoogleCodeExporter closed 9 years ago
If you have compilation problems, can you please provide some complete code
that should compile after the change ?
Original comment by py4fun@gmail.com
on 27 Mar 2013 at 4:48
Something like this:
class ClassX {
public final Map<String, Collection<Integer>> services = new HashMap<>();
}
class CustomRepresenter extends Representer {
public CustomRepresenter() {
this.representers.put(ClassX.class, new RepresentClassX());
}
private class RepresentClassX implements Represent {
@Override
public Node representData(Object data) {
ClassX classX = (ClassX) data;
return representMapping(Tag.MAP, classX.services, false);
}
}
}
You can't pass Map<String, Collection<Integer>> into method that accepts Map<?
extends Object, Object>.
Original comment by Ash2kk@gmail.com
on 29 Mar 2013 at 6:58
Original comment by py4fun@gmail.com
on 30 Mar 2013 at 8:18
Original comment by py4fun@gmail.com
on 30 Mar 2013 at 8:19
Fixed. Feel free to try the latest snapshot. Please check if it works for you.
http://code.google.com/p/snakeyaml/source/list
Original comment by py4fun@gmail.com
on 30 Mar 2013 at 2:15
That works, thanks!
Original comment by Ash2kk@gmail.com
on 9 Apr 2013 at 12:41
It will be delivered in version 1.13
Original comment by py4fun@gmail.com
on 9 Apr 2013 at 6:15
Original issue reported on code.google.com by
Ash2kk@gmail.com
on 27 Mar 2013 at 9:44