Skip to content

Commit 9df916f

Browse files
committed
fix: potential performance issue
1 parent fcef33c commit 9df916f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

operator-framework-core/src/main/java/io/javaoperatorsdk/operator/api/config/ControllerConfigurationOverrider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public ControllerConfigurationOverrider<R> addingNamespaces(String... namespaces
4848
}
4949

5050
public ControllerConfigurationOverrider<R> removingNamespaces(String... namespaces) {
51-
this.namespaces.removeAll(List.of(namespaces));
51+
List.of(namespaces).forEach(this.namespaces::remove);
5252
return this;
5353
}
5454

0 commit comments

Comments
 (0)