diff --git a/src/main/java/cokr/xit/fims/mngt/service/bean/FimsOgdpServiceBean.java b/src/main/java/cokr/xit/fims/mngt/service/bean/FimsOgdpServiceBean.java index b7dafba6..fbda5d92 100644 --- a/src/main/java/cokr/xit/fims/mngt/service/bean/FimsOgdpServiceBean.java +++ b/src/main/java/cokr/xit/fims/mngt/service/bean/FimsOgdpServiceBean.java @@ -34,8 +34,7 @@ public class FimsOgdpServiceBean extends AbstractServiceBean implements OgdpServ @Override public String create(Department dept) { - if(dept instanceof FimsDepartment) { - FimsDepartment fdept = (FimsDepartment) dept; + if(dept instanceof FimsDepartment fdept) { return fimsOgdpBean.createFimsDept(fdept) ? "[S]" : "[F]"; } return "[F]"; @@ -43,8 +42,7 @@ public class FimsOgdpServiceBean extends AbstractServiceBean implements OgdpServ @Override public String update(Department dept) { - if(dept instanceof FimsDepartment) { - FimsDepartment fdept = (FimsDepartment) dept; + if(dept instanceof FimsDepartment fdept) { return fimsOgdpBean.updateFimsDept(fdept) ? "[S]" : "[F]"; } return "[F]";