Skip to content

Commit 380f2e6

Browse files
committed
Suppress SpotBugs unwritten-field warnings on ZooKeeperAwaitStrategy
The `cube` and `dockerClientExecutor` fields are populated by Arquillian via reflection. Removing the SLF4J `LOG` field as part of the slog conversion left those fields as the only declared instance state, which SpotBugs now flags as UWF_UNWRITTEN_FIELD / NP_UNWRITTEN_FIELD. Annotate the class to suppress these warnings.
1 parent 94ae5ea commit 380f2e6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/integration-tests-utils/src/main/java/org/apache/bookkeeper/tests/integration/utils/ZooKeeperAwaitStrategy.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818
package org.apache.bookkeeper.tests.integration.utils;
1919

20+
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
2021
import java.util.concurrent.TimeUnit;
2122
import org.arquillian.cube.docker.impl.docker.DockerClientExecutor;
2223
import org.arquillian.cube.docker.impl.util.Ping;
@@ -27,6 +28,8 @@
2728
/**
2829
* An arquillian await strategy that waits until zookeeper is up running.
2930
*/
31+
// `cube` and `dockerClientExecutor` are injected by Arquillian via reflection.
32+
@SuppressFBWarnings({"UWF_UNWRITTEN_FIELD", "NP_UNWRITTEN_FIELD"})
3033
public class ZooKeeperAwaitStrategy implements AwaitStrategy {
3134

3235
private static final int DEFAULT_POLL_ITERATIONS = 10;

0 commit comments

Comments
 (0)