Commit 4ea16f36 authored by Luc Maisonobe's avatar Luc Maisonobe

Fixed findbugs warnings.

parent 1bdeeea1
...@@ -288,6 +288,10 @@ public class ZipJarCrawler implements DataProvider { ...@@ -288,6 +288,10 @@ public class ZipJarCrawler implements DataProvider {
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override
public EntryStream next() throws NoSuchElementException { public EntryStream next() throws NoSuchElementException {
if (next == null) {
// this should never happen
throw new NoSuchElementException();
}
return next; return next;
} }
......
...@@ -162,8 +162,8 @@ public class Range extends AbstractMeasurement<Range> { ...@@ -162,8 +162,8 @@ public class Range extends AbstractMeasurement<Range> {
dRdPx * dt, dRdPy * dt, dRdPz * dt dRdPx * dt, dRdPy * dt, dRdPz * dt
}); });
if (station.getEastOffsetDriver().isSelected() | if (station.getEastOffsetDriver().isSelected() ||
station.getNorthOffsetDriver().isSelected() | station.getNorthOffsetDriver().isSelected() ||
station.getZenithOffsetDriver().isSelected()) { station.getZenithOffsetDriver().isSelected()) {
// donwlink partial derivatives // donwlink partial derivatives
......
...@@ -187,11 +187,7 @@ public class IntegratedEphemeris ...@@ -187,11 +187,7 @@ public class IntegratedEphemeris
} }
return state; return state;
} catch (OrekitExceptionWrapper oew) { } catch (OrekitExceptionWrapper oew) {
if (oew.getException() instanceof OrekitException) { throw oew.getException();
throw (OrekitException) oew.getException();
} else {
throw new OrekitException(oew.getException());
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment