mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-21 11:40:01 +00:00
removed unnecessary @SuppressWarning / cast; formatting conventions
Change-Id: I4050b6db74b3ca865231984a2b5e4adb4443d6d0
This commit is contained in:
1 parent
ae00fefe9b
commit
c6866d23ff
1 file changed
+2
-4
+2
-4
@@ -152,13 +152,11 @@ public class MongoSensorFixStoreImpl implements MongoSensorFixStore {
|
||||
: loadFixesTo.minus(minimumDurationBetweenProgressUpdates);
|
||||
for (DBObject fixObject : result) {
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
FixT fix = (FixT) loadFix(fixObject);
|
||||
FixT fix = loadFix(fixObject);
|
||||
consumer.accept(fix);
|
||||
fixLoaded = true;
|
||||
|
||||
TimePoint fixTimePoint = fix.getTimePoint();
|
||||
if(ascending ? fixTimePoint.after(nextProgressUpdateAt) : fixTimePoint.before(nextProgressUpdateAt)) {
|
||||
if (ascending ? fixTimePoint.after(nextProgressUpdateAt) : fixTimePoint.before(nextProgressUpdateAt)) {
|
||||
final Duration durationAlreadyLoaded = ascending ? loadFixesFrom.until(fixTimePoint) : fixTimePoint.until(loadFixesTo);
|
||||
progressConsumer.accept(durationAlreadyLoaded.divide(totalDurationToLoad));
|
||||
nextProgressUpdateAt = ascending
|
||||
|
||||
Reference in new issue
Block a user