aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DriversManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/database/DriversManager.java')
-rw-r--r--src/org/traccar/database/DriversManager.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/database/DriversManager.java b/src/org/traccar/database/DriversManager.java
index e3ae07a65..f843568b4 100644
--- a/src/org/traccar/database/DriversManager.java
+++ b/src/org/traccar/database/DriversManager.java
@@ -16,7 +16,6 @@
*/
package org.traccar.database;
-import java.sql.SQLException;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@@ -32,8 +31,8 @@ public class DriversManager extends ExtendedObjectManager {
}
@Override
- public void addItem(BaseModel item) throws SQLException {
- super.addItem(item);
+ protected void addNewItem(BaseModel item) {
+ super.addNewItem(item);
driversByUniqueId.put(((Driver) item).getUniqueId(), (Driver) item);
}