Fix compilation in Eclipse (backport #59675)

Eclipse was confused by #59583. It can't see a the public inner
interface within the superclass. This time. Usually that is fine, but
the Eclipse gods don't like this particular code, I guess.
This commit is contained in:
Nik Everett 2020-07-15 19:56:04 -04:00
parent 76fbe0a6d9
commit 343053c0a7
2 changed files with 6 additions and 2 deletions

View File

@ -186,7 +186,9 @@ public class GeoPointFieldMapper extends AbstractPointGeometryFieldMapper<List<P
}
protected static class ParsedGeoPoint extends GeoPoint implements ParsedPoint {
// Eclipse requires the AbstractPointGeometryFieldMapper prefix or it can't find ParsedPoint
// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=565255
protected static class ParsedGeoPoint extends GeoPoint implements AbstractPointGeometryFieldMapper.ParsedPoint {
@Override
public void validate(String fieldName) {
if (lat() > 90.0 || lat() < -90.0) {

View File

@ -136,7 +136,9 @@ public class PointFieldMapper extends AbstractPointGeometryFieldMapper<List<Pars
}
}
protected static class ParsedCartesianPoint extends CartesianPoint implements ParsedPoint {
// Eclipse requires the AbstractPointGeometryFieldMapper prefix or it can't find ParsedPoint
// See https://bugs.eclipse.org/bugs/show_bug.cgi?id=565255
protected static class ParsedCartesianPoint extends CartesianPoint implements AbstractPointGeometryFieldMapper.ParsedPoint {
@Override
public void validate(String fieldName) {
if (Float.isFinite(getX()) == false) {