From 3f6f350e8cd739943f8534be657cfc4608dce6b4 Mon Sep 17 00:00:00 2001 From: leebj Date: Tue, 28 May 2024 10:44:41 +0900 Subject: [PATCH] no message --- .../xit/fims/mngt/service/bean/FimsOgdpServiceBean.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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]";