diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-25 20:02:22 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-26 08:41:45 +1300 |
commit | 8535983fea8c09046c53f2ebf388bbf3fae594ce (patch) | |
tree | a9f60c445ea163450b8886f7988853d86088db10 /src/org/traccar/web | |
parent | 1c915fa1360f416ec88f4095664a887ceea2bc15 (diff) | |
download | traccar-server-8535983fea8c09046c53f2ebf388bbf3fae594ce.tar.gz traccar-server-8535983fea8c09046c53f2ebf388bbf3fae594ce.tar.bz2 traccar-server-8535983fea8c09046c53f2ebf388bbf3fae594ce.zip |
Clean up unnecessary code
Diffstat (limited to 'src/org/traccar/web')
-rw-r--r-- | src/org/traccar/web/CsvBuilder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/web/CsvBuilder.java b/src/org/traccar/web/CsvBuilder.java index 31b389873..2bbe89788 100644 --- a/src/org/traccar/web/CsvBuilder.java +++ b/src/org/traccar/web/CsvBuilder.java @@ -75,16 +75,16 @@ public class CsvBuilder { if (method.getName().startsWith("get") && method.getParameterTypes().length == 0) { try { if (method.getReturnType().equals(boolean.class)) { - builder.append((Boolean) method.invoke(object)); + builder.append(method.invoke(object)); addSeparator(); } else if (method.getReturnType().equals(int.class)) { - builder.append((Integer) method.invoke(object)); + builder.append(method.invoke(object)); addSeparator(); } else if (method.getReturnType().equals(long.class)) { - builder.append((Long) method.invoke(object)); + builder.append(method.invoke(object)); addSeparator(); } else if (method.getReturnType().equals(double.class)) { - builder.append((Double) method.invoke(object)); + builder.append(method.invoke(object)); addSeparator(); } else if (method.getReturnType().equals(String.class)) { builder.append((String) method.invoke(object)); |