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 4111da47..7f6f8b84 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; }