Skip to content

Commit 03eb1c2

Browse files
authored
cleanup(tse): some minor cleanup (#8)
1 parent 0aba755 commit 03eb1c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/com/dcaiti/mosaic/app/tse/FxdKernel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ public FxdKernel(EventManager eventManager, UnitLogger logger, ConfigT config) {
109109
this.traversalBasedProcessors.addAll(config.traversalBasedProcessors);
110110
}
111111
if (config.timeBasedProcessors != null) {
112-
// create registry of time based processors
112+
// create registry of time-based processors
113113
config.timeBasedProcessors.forEach(processor -> {
114-
if (processor.triggerInterval >= 0) { // validate that processor has a legal trigger interval
114+
if (processor != null && processor.triggerInterval >= 0) { // validate that processor has a legal trigger interval
115115
this.timeBasedProcessors.put(processor.getIdentifier(), processor);
116116
}
117117
});

src/main/java/com/dcaiti/mosaic/app/tse/persistence/FcdDatabaseHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ protected void createTables(boolean isPersistent) throws SQLException {
179179
"CREATE TABLE IF NOT EXISTS " + TABLE_RECORDS + " ("
180180
+ COLUMN_VEH_ID + " TEXT NOT NULL, "
181181
+ COLUMN_TIME_STAMP + " INTEGER NOT NULL, "
182-
+ COLUMN_LATITUDE + " REAL NO NULL, "
183-
+ COLUMN_LONGITUDE + " REAL NO NULL, "
182+
+ COLUMN_LATITUDE + " REAL NOT NULL, "
183+
+ COLUMN_LONGITUDE + " REAL NOT NULL, "
184184
+ COLUMN_CONNECTION_ID + " TEXT NOT NULL, "
185185
+ COLUMN_OFFSET + " INTEGER NOT NULL, "
186186
+ COLUMN_SPEED + " INTEGER NOT NULL, "

0 commit comments

Comments
 (0)