diff options
author | Abyss777 <abyss@fox5.ru> | 2017-07-27 16:46:52 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-07-27 16:46:52 +0500 |
commit | 5446776933ff412361a3c7812c2bb6de9a78ccaf (patch) | |
tree | 965af40404eba36cef53a12f166d7e3a601408e3 /src/org/traccar/Context.java | |
parent | e8a758072e9368f6977880e1aa607351d7cf619a (diff) | |
download | trackermap-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.java | 2 |
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)) { |