aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-07-27 16:46:52 +0500
committerAbyss777 <abyss@fox5.ru>2017-07-27 16:46:52 +0500
commit5446776933ff412361a3c7812c2bb6de9a78ccaf (patch)
tree965af40404eba36cef53a12f166d7e3a601408e3 /src/org/traccar/Context.java
parente8a758072e9368f6977880e1aa607351d7cf619a (diff)
downloadtrackermap-server-5446776933ff412361a3c7812c2bb6de9a78ccaf.tar.gz
trackermap-server-5446776933ff412361a3c7812c2bb6de9a78ccaf.tar.bz2
trackermap-server-5446776933ff412361a3c7812c2bb6de9a78ccaf.zip
Optimize a few IFs
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index 75a7d179b..306a37e83 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -378,7 +378,7 @@ public final class Context {
identityManager = testIdentityManager;
}
- public static <T extends BaseModel> BaseObjectManager<T> getManager(Class<? extends BaseModel> clazz) {
+ public static <T extends BaseModel> BaseObjectManager<T> getManager(Class<T> clazz) {
if (clazz.equals(Device.class)) {
return (BaseObjectManager<T>) deviceManager;
} else if (clazz.equals(Group.class)) {