Skip to content

Commit a3a85f4

Browse files
committed
Reverting the redundant null check
1 parent 95c0ffc commit a3a85f4

File tree

1 file changed

+0
-4
lines changed
  • biojava-structure/src/main/java/org/biojava/nbio/structure/contact

1 file changed

+0
-4
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/contact/BoundingBox.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ public BoundingBox(BoundingBox bb) {
7878
*/
7979
public BoundingBox (Point3d[] atoms) {
8080

81-
Objects.requireNonNull(atoms);
82-
8381
if (atoms.length==0)
8482
throw new IllegalArgumentException("Empty list of atoms is not allowed for BoundingBox construction");
8583

@@ -111,8 +109,6 @@ public BoundingBox (Point3d[] atoms) {
111109
*/
112110
public BoundingBox(BoundingBox[] boxes) {
113111

114-
Objects.requireNonNull(boxes);
115-
116112
if (boxes.length==0)
117113
throw new IllegalArgumentException("Empty list of bounding boxes is not allowed for BoundingBox construction");
118114

0 commit comments

Comments
 (0)