Skip to content

Commit

Permalink
Fixed findbugs warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
maisonobe committed Jun 29, 2016
1 parent 1bdeeea commit 4ea16f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/orekit/data/ZipJarCrawler.java
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ public boolean hasNext() {
/** {@inheritDoc} */
@Override
public EntryStream next() throws NoSuchElementException {
if (next == null) {
// this should never happen
throw new NoSuchElementException();
}
return next;
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/orekit/estimation/measurements/Range.java
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ protected EstimatedMeasurement<Range> theoreticalEvaluation(final int iteration,
dRdPx * dt, dRdPy * dt, dRdPz * dt
});

if (station.getEastOffsetDriver().isSelected() |
station.getNorthOffsetDriver().isSelected() |
if (station.getEastOffsetDriver().isSelected() ||
station.getNorthOffsetDriver().isSelected() ||
station.getZenithOffsetDriver().isSelected()) {

// donwlink partial derivatives
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,7 @@ protected SpacecraftState basicPropagate(final AbsoluteDate date)
}
return state;
} catch (OrekitExceptionWrapper oew) {
if (oew.getException() instanceof OrekitException) {
throw (OrekitException) oew.getException();
} else {
throw new OrekitException(oew.getException());
}
throw oew.getException();
}
}

Expand Down

0 comments on commit 4ea16f3

Please sign in to comment.