From 94ee0ce67f3a7fc28b2126e6ee8099d5742ba3be Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Wed, 25 Sep 2024 02:47:20 +0200 Subject: [PATCH] Add suppression annotation. --- .../src/main/java/net/bytebuddy/build/maven/ByteBuddyMojo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/byte-buddy-maven-plugin/src/main/java/net/bytebuddy/build/maven/ByteBuddyMojo.java b/byte-buddy-maven-plugin/src/main/java/net/bytebuddy/build/maven/ByteBuddyMojo.java index c9bec821b1..58241ea414 100644 --- a/byte-buddy-maven-plugin/src/main/java/net/bytebuddy/build/maven/ByteBuddyMojo.java +++ b/byte-buddy-maven-plugin/src/main/java/net/bytebuddy/build/maven/ByteBuddyMojo.java @@ -231,6 +231,7 @@ public abstract class ByteBuddyMojo extends AbstractMojo { /** * {@inheritDoc} */ + @SuppressFBWarnings(value = "DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED", justification = "The security manager is not normally used within Maven.") public void execute() throws MojoExecutionException, MojoFailureException { if (project == null || repositorySystem == null || discovery == null) { throw new MojoExecutionException("Plugin is not initialized correctly"); @@ -1225,7 +1226,7 @@ protected FromClassLoader(String plugin, List classPath) { } @Override - @SuppressFBWarnings(value = "DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED", justification = "The security manager is not normally used within Maven") + @SuppressFBWarnings(value = "DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED", justification = "The security manager is not normally used within Maven.") protected ClassLoader toClassLoader(ClassLoaderResolver classLoaderResolver, Map coordinates, String groupId, String artifactId, String version, String packaging) { URL[] url = new URL[classPath.size()]; for (int index = 0; index < classPath.size(); index++) {