aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DataManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-14 10:10:30 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-14 10:10:30 +1300
commit26659e3631901a46e35a5c2ac89c698a52277b0a (patch)
treee79af12bbeb18da1d879b11f066da96517bf9a4c /src/org/traccar/database/DataManager.java
parent398b705820109c1103d915a2fec81fcf70b032cf (diff)
downloadtrackermap-server-26659e3631901a46e35a5c2ac89c698a52277b0a.tar.gz
trackermap-server-26659e3631901a46e35a5c2ac89c698a52277b0a.tar.bz2
trackermap-server-26659e3631901a46e35a5c2ac89c698a52277b0a.zip
Fix some check style issues
Diffstat (limited to 'src/org/traccar/database/DataManager.java')
-rw-r--r--src/org/traccar/database/DataManager.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index 66134d51e..e249a7591 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -118,7 +118,8 @@ public class DataManager implements IdentityManager {
@Override
public Device getDeviceByUniqueId(String uniqueId) throws SQLException {
- if (System.currentTimeMillis() - devicesLastUpdate > devicesRefreshDelay || !devicesByUniqueId.containsKey(uniqueId)) {
+ if (System.currentTimeMillis() - devicesLastUpdate > devicesRefreshDelay
+ || !devicesByUniqueId.containsKey(uniqueId)) {
devicesById.clear();
devicesByUniqueId.clear();
@@ -163,7 +164,8 @@ public class DataManager implements IdentityManager {
String schemaVersionQuery = getQuery("database.selectSchemaVersion");
if (schemaVersionQuery != null) {
- Schema schema = QueryBuilder.create(dataSource, schemaVersionQuery).executeQuerySingle(new Schema());
+ Schema schema = QueryBuilder.create(dataSource, schemaVersionQuery)
+ .executeQuerySingle(new Schema());
int version = 0;
if (schema != null) {