From 45882ea0bae3805d98fef81e2f95c2f64a53b2fe Mon Sep 17 00:00:00 2001 From: Parker Date: Fri, 4 Dec 2020 18:13:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DProps=20=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E7=A9=BA=E6=8C=87=E9=92=88=E5=BC=82=E5=B8=B8BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/opsli/common/utils/Props.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/opsli-base-support/opsli-common/src/main/java/org/opsli/common/utils/Props.java b/opsli-base-support/opsli-common/src/main/java/org/opsli/common/utils/Props.java index 4111da4..7f6f8b8 100644 --- a/opsli-base-support/opsli-common/src/main/java/org/opsli/common/utils/Props.java +++ b/opsli-base-support/opsli-common/src/main/java/org/opsli/common/utils/Props.java @@ -138,7 +138,7 @@ public class Props { Object obj = this.getObject(keys); if(obj != null){ - def = Convert.convert(def.getClass(), obj); + def = Convert.convert(Object.class, obj); } return def; } @@ -168,7 +168,7 @@ public class Props { if(obj != null){ def = ""; - def = Convert.convert(def.getClass(), obj); + def = Convert.convert(String.class, obj); } return def; } @@ -196,7 +196,7 @@ public class Props { Object obj = this.getObject(keys); if(obj != null){ - def = Convert.convert(def.getClass(), obj); + def = Convert.convert(Integer.class, obj); } return def; } @@ -224,7 +224,7 @@ public class Props { Object obj = this.getObject(keys); if(obj != null){ - def = Convert.convert(def.getClass(), obj); + def = Convert.convert(Long.class, obj); } return def; } @@ -253,7 +253,7 @@ public class Props { Object obj = this.getObject(keys); if(obj != null){ - def = Convert.convert(def.getClass(), obj); + def = Convert.convert(Double.class, obj); } return def; } @@ -283,7 +283,7 @@ public class Props { Object obj = this.getObject(keys); if(obj != null){ - def = Convert.convert(def.getClass(), obj); + def = Convert.convert(Float.class, obj); } return def; } @@ -312,7 +312,7 @@ public class Props { Object obj = this.getObject(keys); if(obj != null){ - def = Convert.convert(def.getClass(), obj); + def = Convert.convert(Character.class, obj); } return def; } @@ -340,7 +340,7 @@ public class Props { Object obj = this.getObject(keys); if(obj != null){ - def = Convert.convert(def.getClass(), obj); + def = Convert.convert(Boolean.class, obj); } return def; }