You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ma...@apache.org on 2021/08/21 13:06:10 UTC
[commons-geometry] branch master updated: Simplify conditions
avoiding redundant null check.
This is an automated email from the ASF dual-hosted git repository.
mattjuntunen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-geometry.git
The following commit(s) were added to refs/heads/master by this push:
new b00020d Simplify conditions avoiding redundant null check.
b00020d is described below
commit b00020d34aaf657697dd30e0f730c917233dc79f
Author: Arturo Bernal <ar...@gmail.com>
AuthorDate: Fri Aug 20 08:01:27 2021 +0200
Simplify conditions avoiding redundant null check.
---
.../org/apache/commons/geometry/spherical/oned/RegionBSPTree1S.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/oned/RegionBSPTree1S.java b/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/oned/RegionBSPTree1S.java
index 671599d..a28623f 100644
--- a/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/oned/RegionBSPTree1S.java
+++ b/commons-geometry-spherical/src/main/java/org/apache/commons/geometry/spherical/oned/RegionBSPTree1S.java
@@ -244,7 +244,7 @@ public class RegionBSPTree1S extends AbstractRegionBSPTree<Point1S, RegionBSPTre
}
}
- if (start != null && end != null) {
+ if (start != null) {
intervals.add(createInterval(start, end));
}