From 45141d9256b27c2778a8212e0e26ba638e6cc66e Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Tue, 18 Jun 2024 09:33:30 +0200 Subject: [PATCH] Add findbugs suppression. --- .../src/main/java/net/bytebuddy/agent/Installer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/byte-buddy-agent/src/main/java/net/bytebuddy/agent/Installer.java b/byte-buddy-agent/src/main/java/net/bytebuddy/agent/Installer.java index ec3552e3c4..4bd1458857 100644 --- a/byte-buddy-agent/src/main/java/net/bytebuddy/agent/Installer.java +++ b/byte-buddy-agent/src/main/java/net/bytebuddy/agent/Installer.java @@ -15,6 +15,7 @@ */ package net.bytebuddy.agent; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; import net.bytebuddy.agent.utility.nullability.MaybeNull; import java.lang.instrument.Instrumentation; @@ -114,6 +115,7 @@ public static void agentmain(String arguments, Instrumentation instrumentation) * * @param instrumentation The instrumentation instance. */ + @SuppressFBWarnings(value = "REC_CATCH_EXCEPTION", justification = "Exception should not interrupt agent attachment.") private static void doMain(Instrumentation instrumentation) { Installer.instrumentation = instrumentation; try {