From be1fc33646d52b927e7254c1b59d5c7b8c6b2e50 Mon Sep 17 00:00:00 2001 From: Antoine Neveux Date: Wed, 23 Aug 2023 14:58:01 +0200 Subject: [PATCH] Suppressing an additional Spotbugs warning --- .../kubernetes/pipeline/ContainerStepExecution.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerStepExecution.java b/src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerStepExecution.java index 7708fd69f2..5af3d66929 100755 --- a/src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerStepExecution.java +++ b/src/main/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/ContainerStepExecution.java @@ -96,14 +96,14 @@ public void stop(@NonNull Throwable cause) throws Exception { closeQuietly(getContext(), decorator); } - private static class ContainerExecCallback extends BodyExecutionCallback.TailCall { + @SuppressFBWarnings("SE_BAD_FIELD") + private static class ContainerExecCallback extends BodyExecutionCallback.TailCall { private static final long serialVersionUID = 6385838254761750483L; - private final T[] closeables; + private final Closeable[] closeables; - @SafeVarargs - private ContainerExecCallback(T... closeables) { + private ContainerExecCallback(Closeable... closeables) { this.closeables = closeables; } @Override