Skip to content

Apache Lucene open-source search software

Fix the boxing issue again.

Dawid Weiss30873cfcd9a7
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoStandardPath.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoStandardPath.java
index ea069410aa8..1a48441a389 100755
--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoStandardPath.java
+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/geom/GeoStandardPath.java
@@ -1900,7 +1900,7 @@ class GeoStandardPath extends GeoBasePath {
componentStack.add(component);
depthStack.add(0);
while (depthStack.size() >= 2) {
- if (depthStack.get(depthStack.size() - 1) == depthStack.get(depthStack.size() - 2)) {
+ if (depthStack.get(depthStack.size() - 1).equals(depthStack.get(depthStack.size() - 2))) {
mergeTop();
} else {
break;