Browse Source

去掉无用返回值

master
vito 9 years ago
parent
commit
d941231d76
  1. 5
      designer/src/com/fr/design/report/ReportExportAttrPane.java
  2. 13
      designer_base/src/com/fr/design/fun/AbstractExportPane.java

5
designer/src/com/fr/design/report/ReportExportAttrPane.java

@ -82,10 +82,7 @@ public class ReportExportAttrPane extends BasicPane {
}
for (AbstractExportPane exportPane : paneList) {
ReportExportAttr exportAttr = exportPane.update(reportExportAttr, ReportExportAttr.class);
if (exportAttr != null) {
reportExportAttr = exportAttr;
}
exportPane.update(reportExportAttr);
}
return reportExportAttr;
}

13
designer_base/src/com/fr/design/fun/AbstractExportPane.java

@ -9,16 +9,5 @@ public abstract class AbstractExportPane extends BasicPane {
public abstract void populate(Object t);
public abstract Object update(Object t);
public <T> T update(Object t,Class<? extends T> clazz){
Object object = this.update(t);
if(object == null){
return null;
}
if(object.getClass().isAssignableFrom(clazz)){
return clazz.cast(object);
}
return null;
}
public abstract void update(Object t);
}

Loading…
Cancel
Save