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:38:28 UTC
lucene-solr:branch_6x: LUCENE-8088: Fix for random shape generator;
committed on behalf of Ignacio Vera.
Repository: lucene-solr
Updated Branches:
refs/heads/branch_6x 8d3d20604 -> f48f998ea
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/f48f998e
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f48f998e
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f48f998e
Branch: refs/heads/branch_6x
Commit: f48f998eaa445d67fd1c0fd14723a37a3ca0c157
Parents: 8d3d206
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:20 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/f48f998e/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));