Mercurial > hg > ismi-richfaces
changeset 90:72b877076f43
small cleanup.
author | casties |
---|---|
date | Wed, 12 Oct 2016 15:34:49 +0200 |
parents | a142159f09c1 |
children | d172201d24ad |
files | src/main/java/de/mpiwg/itgroup/ismi/entry/beans/AbstractISMIBean.java src/main/java/de/mpiwg/itgroup/ismi/entry/beans/CurrentTextBean.java |
diffstat | 2 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/de/mpiwg/itgroup/ismi/entry/beans/AbstractISMIBean.java Mon Oct 10 19:58:35 2016 +0200 +++ b/src/main/java/de/mpiwg/itgroup/ismi/entry/beans/AbstractISMIBean.java Wed Oct 12 15:34:49 2016 +0200 @@ -169,20 +169,20 @@ return PAGE_EDITOR; } - public String actionReloadEntity(){ + public String actionReloadEntity() { Long id = null; - try{ + try { id = new Long(this.getCurrentId()); - }catch (Exception e) {} + } catch (Exception e) {} - if(id != null){ - Entity tmp = getWrapper().getEntityById(id); - if(tmp != null && tmp.getObjectClass().equals(this.defObjectClass)){ - this.setEntity(tmp); - }else{ + if (id != null) { + Entity newEnt = getWrapper().getEntityById(id); + if (newEnt != null && newEnt.getObjectClass().equals(this.defObjectClass)) { + this.setEntity(newEnt); + } else { this.setCurrentIdMsg("Entity no found!"); } - }else{ + } else { this.setCurrentIdMsg("ID is not valid!"); } return PAGE_EDITOR;
--- a/src/main/java/de/mpiwg/itgroup/ismi/entry/beans/CurrentTextBean.java Mon Oct 10 19:58:35 2016 +0200 +++ b/src/main/java/de/mpiwg/itgroup/ismi/entry/beans/CurrentTextBean.java Wed Oct 12 15:34:49 2016 +0200 @@ -28,7 +28,7 @@ import de.mpiwg.itgroup.ismi.util.guiComponents.EndNoteMisattributionTable; import de.mpiwg.itgroup.ismi.util.guiComponents.EntityList; -public class CurrentTextBean extends AbstractISMIBean implements Serializable{ +public class CurrentTextBean extends AbstractISMIBean implements Serializable{ private static final long serialVersionUID = 1017399812886455381L; private static Logger logger = Logger.getLogger(CurrentTextBean.class);