Commit 9d621ecf authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Fixed wrong signature.

parent 286ae2f2
Pipeline #1647 passed with stages
in 28 minutes and 44 seconds
...@@ -69,11 +69,11 @@ public abstract class FieldAbstractDetector<D extends FieldEventDetector<T>, ...@@ -69,11 +69,11 @@ public abstract class FieldAbstractDetector<D extends FieldEventDetector<T>,
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
@SuppressWarnings("unchecked")
public void init(final FieldSpacecraftState<T> s0, public void init(final FieldSpacecraftState<T> s0,
final FieldAbsoluteDate<T> t, final FieldAbsoluteDate<T> t) {
final D detector) {
forward = t.durationFrom(s0.getDate()).getReal() >= 0.0; forward = t.durationFrom(s0.getDate()).getReal() >= 0.0;
getHandler().init(s0, t, detector); getHandler().init(s0, t, (D) this);
} }
/** {@inheritDoc} */ /** {@inheritDoc} */
......
...@@ -70,8 +70,7 @@ public class FieldEventDetectorTest { ...@@ -70,8 +70,7 @@ public class FieldEventDetectorTest {
doTestEventHandlerInit(Decimal64Field.getInstance()); doTestEventHandlerInit(Decimal64Field.getInstance());
} }
private <T extends CalculusFieldElement<T>> void doTestEventHandlerInit(Field<T> field) private <T extends CalculusFieldElement<T>> void doTestEventHandlerInit(Field<T> field) {
{
final T zero = field.getZero(); final T zero = field.getZero();
final TimeScale utc = TimeScalesFactory.getUTC(); final TimeScale utc = TimeScalesFactory.getUTC();
......
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