Neil Ireson created LUCENE-9757: ----------------------------------- Summary: Repeated code in Polygon Key: LUCENE-9757 URL: https://issues.apache.org/jira/browse/LUCENE-9757 Project: Lucene - Core Issue Type: Bug Environment: In the constructor, the following inequality check is repeated:
{code:java} if (polyLats.length != polyLons.length) { throw new IllegalArgumentException("polyLats and polyLons must be equal length"); } {code} This almost seems too trivial to mention but the nanosecond time saving may be useful to someone. Reporter: Neil Ireson -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org