jbampton commented on a change in pull request #2147:
URL: https://github.com/apache/lucene-solr/pull/2147#discussion_r543223927



##########
File path: 
lucene/core/src/test/org/apache/lucene/document/BaseXYShapeTestCase.java
##########
@@ -126,24 +132,12 @@ protected boolean rectCrossesDateline(Object rect) {
     return false;
   }
 
-  /** use {@link ShapeTestUtil#nextPolygon()} to create a random line; TODO: 
move to GeoTestUtil */
+  /** use {@link ShapeTestUtil#nextPolygon()} to create a random line */
   @Override
   public XYLine nextLine() {
-    return getNextLine();
-  }
-
-  public static XYLine getNextLine() {
-    XYPolygon poly = ShapeTestUtil.nextPolygon();
-    float[] x = new float[poly.numPoints() - 1];
-    float[] y = new float[x.length];
-    for (int i = 0; i < x.length; ++i) {
-      x[i] = poly.getPolyX(i);
-      y[i] = poly.getPolyY(i);
-    }
-
-    return new XYLine(x, y);
+    return ShapeTestUtil.nextLine();
   }
-
+  

Review comment:
       ```suggestion
   
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to