You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by kw...@apache.org on 2017/12/10 11:39:04 UTC

lucene-solr:branch_7x: LUCENE-8088: Fix for random shape generator; committed on behalf of Ignacio Vera.

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 311105f1b -> 6d74bbe00


LUCENE-8088: Fix for random shape generator; committed on behalf of Ignacio Vera.


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/6d74bbe0
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/6d74bbe0
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/6d74bbe0

Branch: refs/heads/branch_7x
Commit: 6d74bbe009b1e099398789d81f77bf51e42c998b
Parents: 311105f
Author: Karl Wright <Da...@gmail.com>
Authored: Sun Dec 10 06:37:10 2017 -0500
Committer: Karl Wright <Da...@gmail.com>
Committed: Sun Dec 10 06:38:55 2017 -0500

----------------------------------------------------------------------
 .../apache/lucene/spatial3d/geom/RandomGeo3dShapeGenerator.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/6d74bbe0/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/RandomGeo3dShapeGenerator.java
----------------------------------------------------------------------
diff --git a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/RandomGeo3dShapeGenerator.java b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/RandomGeo3dShapeGenerator.java
index 4ff973a..cf3713c 100644
--- a/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/RandomGeo3dShapeGenerator.java
+++ b/lucene/spatial3d/src/test/org/apache/lucene/spatial3d/geom/RandomGeo3dShapeGenerator.java
@@ -755,7 +755,7 @@ public class RandomGeo3dShapeGenerator extends LuceneTestCase {
         int vertexCount = random().nextInt(14) + 3;
         List<GeoPoint> geoPoints = points(vertexCount,planetModel, constraints);
         if (geoPoints.size() < 3){
-          continue;
+          break;
         }
         orderPoints(geoPoints);
         polDescription.add(new GeoPolygonFactory.PolygonDescription(geoPoints));