Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/TypeConverter.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | c2acc840963b |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
56 if ("timestamp".equals(type)) { | 56 if ("timestamp".equals(type)) { |
57 if (object instanceof Timestamp) { | 57 if (object instanceof Timestamp) { |
58 return object; | 58 return object; |
59 } | 59 } |
60 try { | 60 try { |
61 return new Timestamp((long)Double.parseDouble(object.toString())); | 61 return new Timestamp( |
62 (long)Double.parseDouble(object.toString())); | |
62 } | 63 } |
63 catch (NumberFormatException nfe) { | 64 catch (NumberFormatException nfe) { |
64 log.warn(nfe); | 65 log.warn(nfe); |
65 return null; | 66 return null; |
66 } | 67 } |