PDA

View Full Version : [FIXED] [2.0-RC2] TreePanelEvent Generics



Cputerace
1 Jul 2009, 9:31 AM
TreePanelEvent.class line 52:


public ModelData getItem() {
if (item == null) {
if (getNode() != null) {
item = (M) getNode().getModel();
}
}
return item;
}Should be:

public M getItem() {
if (item == null) {
if (getNode() != null) {
item = (M) getNode().getModel();
}
}
return item;
}It looks like most of the getters in TreePanelEvent could use generics: getParent, getChild, getStore,

darrellmeyer
5 Jul 2009, 8:06 PM
Fixed in SVN.