aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-24 15:42:23 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-24 15:42:23 -0700
commit2daec980de3183efbefc3e79a914a01dc6de910b (patch)
tree04d23f999fd007d53ca23dd5f3172062e3367136 /src/main
parenteb39a38711c924ae0ecc7ad29ad69e74a95d92d8 (diff)
downloadtrackermap-server-2daec980de3183efbefc3e79a914a01dc6de910b.tar.gz
trackermap-server-2daec980de3183efbefc3e79a914a01dc6de910b.tar.bz2
trackermap-server-2daec980de3183efbefc3e79a914a01dc6de910b.zip
Improve query builder
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/storage/QueryBuilder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/storage/QueryBuilder.java b/src/main/java/org/traccar/storage/QueryBuilder.java
index 910ebf170..a58ebe2b4 100644
--- a/src/main/java/org/traccar/storage/QueryBuilder.java
+++ b/src/main/java/org/traccar/storage/QueryBuilder.java
@@ -288,7 +288,8 @@ public final class QueryBuilder {
Method[] methods = object.getClass().getMethods();
for (Method method : methods) {
- if (method.getName().startsWith("get") && method.getParameterTypes().length == 0) {
+ if (method.getName().startsWith("get") && method.getParameterTypes().length == 0
+ && !method.getName().equals("getClass")) {
String name = method.getName().substring(3);
try {
if (method.getReturnType().equals(boolean.class)) {