More tidying to make lint happy

This commit is contained in:
Karl David Wright 2022-11-22 22:05:55 -05:00
parent 49c8a75917
commit 5fec8efe4e
3 changed files with 5 additions and 22 deletions

View File

@ -463,6 +463,7 @@ class GeoDegeneratePath extends GeoBasePath {
* @param z is the point z. * @param z is the point z.
* @return true of within. * @return true of within.
*/ */
@Override
public boolean isWithin(final double x, final double y, final double z) { public boolean isWithin(final double x, final double y, final double z) {
return this.point.isIdentical(x, y, z); return this.point.isIdentical(x, y, z);
} }
@ -554,10 +555,10 @@ class GeoDegeneratePath extends GeoBasePath {
/** /**
* Get the bounds for a segment endpoint. * Get the bounds for a segment endpoint.
* *
* @param planetModel is the planet model.
* @param bounds are the bounds to be modified. * @param bounds are the bounds to be modified.
*/ */
public void getBounds(final PlanetModel planetModel, Bounds bounds) { @Override
public void getBounds(final Bounds bounds) {
bounds.addPoint(point); bounds.addPoint(point);
} }
@ -771,7 +772,6 @@ class GeoDegeneratePath extends GeoBasePath {
/** /**
* Compute interior path distance. * Compute interior path distance.
* *
* @param planetModel is the planet model.
* @param distanceStyle is the distance style. * @param distanceStyle is the distance style.
* @param x is the point x. * @param x is the point x.
* @param y is the point y. * @param y is the point y.
@ -831,7 +831,6 @@ class GeoDegeneratePath extends GeoBasePath {
/** /**
* Compute external distance. * Compute external distance.
* *
* @param planetModel is the planet model.
* @param distanceStyle is the distance style. * @param distanceStyle is the distance style.
* @param x is the point x. * @param x is the point x.
* @param y is the point y. * @param y is the point y.
@ -851,7 +850,6 @@ class GeoDegeneratePath extends GeoBasePath {
/** /**
* Determine if this endpoint intersects a specified plane. * Determine if this endpoint intersects a specified plane.
* *
* @param planetModel is the planet model.
* @param p is the plane. * @param p is the plane.
* @param notablePoints are the points associated with the plane. * @param notablePoints are the points associated with the plane.
* @param bounds are any bounds which the intersection must lie within. * @param bounds are any bounds which the intersection must lie within.
@ -883,7 +881,6 @@ class GeoDegeneratePath extends GeoBasePath {
/** /**
* Get the bounds for a segment endpoint. * Get the bounds for a segment endpoint.
* *
* @param planetModel is the planet model.
* @param bounds are the bounds to be modified. * @param bounds are the bounds to be modified.
*/ */
@Override @Override

View File

@ -1146,20 +1146,6 @@ class GeoStandardPath extends GeoBasePath {
public String toString() { public String toString() {
return "CutoffSingleCircleSegmentEndpoint: " + super.toString(); return "CutoffSingleCircleSegmentEndpoint: " + super.toString();
} }
@Override
public void getBounds(final Bounds bounds) {
super.getBounds(bounds);
bounds.addPlane(planetModel, circlePlane, cutoffPlane);
bounds.addPlane(planetModel, cutoffPlane, circlePlane);
bounds.addIntersection(planetModel, circlePlane, cutoffPlane);
bounds.addIntersection(planetModel, cutoffPlane, circlePlane);
}
@Override
public String toString() {
return "CutoffSingleCircleSegmentEndpoint: " + super.toString();
}
} }
/** /**

View File

@ -415,9 +415,9 @@ public class TestGeoPath extends LuceneTestCase {
// Construct a path with a width // Construct a path with a width
final GeoPath legacyPath = GeoPathFactory.makeGeoPath(PlanetModel.SPHERE, 1e-6, pathPoints); final GeoPath legacyPath = GeoPathFactory.makeGeoPath(PlanetModel.SPHERE, 1e-6, pathPoints);
// Compute the inside distance to the atPoint using zero-width path // Compute the inside distance to the atPoint using zero-width path
final double distance = thisPath.computeNearestDistance(DistanceStyle.ARC, carPoint); // final double distance = thisPath.computeNearestDistance(DistanceStyle.ARC, carPoint);
// Compute the inside distance using legacy path // Compute the inside distance using legacy path
final double legacyDistance = legacyPath.computeNearestDistance(DistanceStyle.ARC, carPoint); // final double legacyDistance = legacyPath.computeNearestDistance(DistanceStyle.ARC, carPoint);
// Compute the inside distance using the legacy formula // Compute the inside distance using the legacy formula
final double oldFormulaDistance = thisPath.computeDistance(DistanceStyle.ARC, carPoint); final double oldFormulaDistance = thisPath.computeDistance(DistanceStyle.ARC, carPoint);
// Compute the inside distance using the legacy formula with the legacy shape // Compute the inside distance using the legacy formula with the legacy shape