improved the method
This commit is contained in:
parent
8f911c2ab2
commit
ce9a5160ae
|
@ -58,12 +58,8 @@ public class BBOXDV implements Serializable {
|
||||||
private Double toDouble(Object toDouble) {
|
private Double toDouble(Object toDouble) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
return new Double((double) toDouble);
|
||||||
if (toDouble != null) {
|
|
||||||
|
|
||||||
return new Double((double) toDouble);
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.warn(toDouble + " is not castable to " + Double.class.getSimpleName());
|
LOG.warn(toDouble + " is not castable to " + Double.class.getSimpleName());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue