removed unnecessary @SuppressWarning / cast; formatting conventions

Change-Id: I4050b6db74b3ca865231984a2b5e4adb4443d6d0
This commit is contained in:
Axel Uhl committed 2017-07-24 21:13:05 +02:00
1 parent ae00fefe9b
commit c6866d23ff
1 file changed
+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