Skip to content

Commit

Permalink
Add serial version UID to fix compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aherbert committed Nov 21, 2023
1 parent b68b260 commit 6b97a08
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ public void integrate(ExpandableStatefulODE equations, double t) {
}

private static final class PerfectInterpolator implements StepInterpolator {
private static final long serialVersionUID = 1;
private final TestProblemAbstract problem;
private double previousTime;
private double currentTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ public void integrate(ExpandableStatefulODE equations, double t) {
}

private static final class PerfectInterpolator implements StepInterpolator {
private static final long serialVersionUID = 1;
private final TestProblemAbstract problem;
private double previousTime;
private double currentTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public void testImpossibleSerialization()
}

private static final class BadStepInterpolator extends DummyStepInterpolator {
private static final long serialVersionUID = 1;
BadStepInterpolator(double[] y, boolean forward) {
super(y, new double[y.length], forward);
}
Expand Down

0 comments on commit 6b97a08

Please sign in to comment.