Skip to content
Permalink
Browse files
Make Test classes final
  • Loading branch information
singhbaljit committed Dec 28, 2020
1 parent 1b2dc3a commit a39e89dbd15e1c676b229c42338bfb750d58145f
Showing 7 changed files with 7 additions and 7 deletions.
@@ -24,7 +24,7 @@

/** BSP Tree implementation class for testing purposes.
*/
public class TestBSPTree extends AbstractBSPTree<TestPoint2D, TestBSPTree.TestNode> {
public final class TestBSPTree extends AbstractBSPTree<TestPoint2D, TestBSPTree.TestNode> {

/** {@inheritDoc} */
@Override
@@ -24,7 +24,7 @@
/** Class representing a line in two dimensional Euclidean space. This
* class should only be used for testing purposes.
*/
public class TestLine implements EmbeddingHyperplane<TestPoint2D, TestPoint1D> {
public final class TestLine implements EmbeddingHyperplane<TestPoint2D, TestPoint1D> {

/** Line pointing along the positive x-axis. */
public static final TestLine X_AXIS = new TestLine(0, 0, 1, 0);
@@ -28,7 +28,7 @@
/** Class representing a line segment in two dimensional Euclidean space. This
* class should only be used for testing purposes.
*/
public class TestLineSegment implements HyperplaneConvexSubset<TestPoint2D> {
public final class TestLineSegment implements HyperplaneConvexSubset<TestPoint2D> {
/** Abscissa of the line segment start point. */
private final double start;

@@ -30,7 +30,7 @@
/** Class containing a collection line segments. This class should only be used for
* testing purposes.
*/
public class TestLineSegmentCollection implements HyperplaneSubset<TestPoint2D> {
public final class TestLineSegmentCollection implements HyperplaneSubset<TestPoint2D> {
/** The collection of line-segments making up the subset.
*/
private final List<TestLineSegment> segments;
@@ -21,7 +21,7 @@
/** Class representing a point in one dimensional Euclidean space. This
* class should only be used for testing purposes.
*/
public class TestPoint1D implements Point<TestPoint1D> {
public final class TestPoint1D implements Point<TestPoint1D> {
/** X coordinate */
private final double x;

@@ -21,7 +21,7 @@
/** Class representing a point in two dimensional Euclidean space. This
* class should only be used for testing purposes.
*/
public class TestPoint2D implements Point<TestPoint2D> {
public final class TestPoint2D implements Point<TestPoint2D> {

/** Instance representing the coordinates {@code (0, 0)} */
public static final TestPoint2D ZERO = new TestPoint2D(0, 0);
@@ -23,7 +23,7 @@
/** Implementation class for 2D {@link Transform}s. This
* class should only be used for testing purposes.
*/
public class TestTransform2D implements Transform<TestPoint2D> {
public final class TestTransform2D implements Transform<TestPoint2D> {

/** Underlying transform function. */
private final UnaryOperator<TestPoint2D> fn;

0 comments on commit a39e89d

Please sign in to comment.