From 9868547459aa177c8417ca88ccd48592edfe0f9e Mon Sep 17 00:00:00 2001 From: Rinjae Date: Wed, 10 Dec 2025 22:22:06 +0900 Subject: [PATCH] =?UTF-8?q?KjbPropertyInjector=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/eactive/ext/kjb/util/KjbPropertyInjector.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/eactive/ext/kjb/util/KjbPropertyInjector.java b/src/main/java/com/eactive/ext/kjb/util/KjbPropertyInjector.java index 9173847..dd2c738 100644 --- a/src/main/java/com/eactive/ext/kjb/util/KjbPropertyInjector.java +++ b/src/main/java/com/eactive/ext/kjb/util/KjbPropertyInjector.java @@ -94,12 +94,12 @@ public class KjbPropertyInjector { private static Object convertValue(Class type, String rawValue) { if (rawValue == null) return null; - if (type == String.class) return rawValue; - - // 빈 문자열인 경우 primitive 타입은 null 반환 (필드의 기본값 유지) + // 빈 문자열인 경우 null 반환 (필드의 기본값 유지) if (StringUtils.isEmpty(rawValue)) { return null; } + + if (type == String.class) return rawValue; try { if (type == Integer.class || type == int.class) return Integer.valueOf(rawValue);