diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-14 10:10:30 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-14 10:10:30 +1300 |
commit | 26659e3631901a46e35a5c2ac89c698a52277b0a (patch) | |
tree | e79af12bbeb18da1d879b11f066da96517bf9a4c /src/org/traccar/database | |
parent | 398b705820109c1103d915a2fec81fcf70b032cf (diff) | |
download | trackermap-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')
-rw-r--r-- | src/org/traccar/database/DataManager.java | 6 | ||||
-rw-r--r-- | src/org/traccar/database/QueryBuilder.java | 3 |
2 files changed, 6 insertions, 3 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) { diff --git a/src/org/traccar/database/QueryBuilder.java b/src/org/traccar/database/QueryBuilder.java index 07a351c05..f50546129 100644 --- a/src/org/traccar/database/QueryBuilder.java +++ b/src/org/traccar/database/QueryBuilder.java @@ -132,7 +132,8 @@ public final class QueryBuilder { return new QueryBuilder(dataSource, query, false); } - public static QueryBuilder create(DataSource dataSource, String query, boolean returnGeneratedKeys) throws SQLException { + public static QueryBuilder create( + DataSource dataSource, String query, boolean returnGeneratedKeys) throws SQLException { return new QueryBuilder(dataSource, query, returnGeneratedKeys); } |