aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/database/DataManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/database/DataManager.java b/src/org/traccar/database/DataManager.java
index 17c1299e8..be42d6d3e 100644
--- a/src/org/traccar/database/DataManager.java
+++ b/src/org/traccar/database/DataManager.java
@@ -419,12 +419,12 @@ public class DataManager {
}
}
- public static String makeNameId(Class<?> clazz) {
+ private static String makeNameId(Class<?> clazz) {
String name = clazz.getSimpleName();
- return Introspector.decapitalize(name) + (name.indexOf("Id") == -1 ? "Id" : "");
+ return Introspector.decapitalize(name) + (!name.contains("Id") ? "Id" : "");
}
- public Collection<Permission> getPermissions(Class<? extends BaseModel> owner, Class<? extends BaseModel> property)
+ private Collection<Permission> getPermissions(Class<? extends BaseModel> owner, Class<? extends BaseModel> property)
throws SQLException, ClassNotFoundException {
return QueryBuilder.create(dataSource, getQuery(ACTION_SELECT_ALL, owner, property))
.executePermissionsQuery();