浏览代码

关闭多余的提示

JustryDeng 5 年之前
父节点
当前提交
eac3973847

+ 3 - 1
class-winter-maven-plugin/src/main/java/net/jd/classwinter/plugin/ClassWinterPlugin.java

@@ -20,6 +20,7 @@ import java.io.File;
  *
  *
  * @author JustryDeng
  * @author JustryDeng
  */
  */
+@SuppressWarnings("unused")
 @Mojo(name = "class-winter", defaultPhase = LifecyclePhase.PACKAGE)
 @Mojo(name = "class-winter", defaultPhase = LifecyclePhase.PACKAGE)
 public class ClassWinterPlugin extends AbstractMojo {
 public class ClassWinterPlugin extends AbstractMojo {
 
 
@@ -57,6 +58,7 @@ public class ClassWinterPlugin extends AbstractMojo {
     private Boolean debug;
     private Boolean debug;
     
     
     @Override
     @Override
+    @SuppressWarnings("RedundantThrows")
     public void execute() throws MojoExecutionException, MojoFailureException {
     public void execute() throws MojoExecutionException, MojoFailureException {
         Logger.info(ClassWinterPlugin.class,"---------------------------< class-winter-plugin start >---------------------------");
         Logger.info(ClassWinterPlugin.class,"---------------------------< class-winter-plugin start >---------------------------");
         
         
@@ -88,7 +90,7 @@ public class ClassWinterPlugin extends AbstractMojo {
                 .build();
                 .build();
     
     
         Logger.debug(ClassWinterPlugin.class, "The encrypted executor generated based on your configuration is -> " + encryptExecutor);
         Logger.debug(ClassWinterPlugin.class, "The encrypted executor generated based on your configuration is -> " + encryptExecutor);
-        String encryptedJarOrWar = null;
+        String encryptedJarOrWar;
         try {
         try {
             encryptedJarOrWar = encryptExecutor.process();
             encryptedJarOrWar = encryptExecutor.process();
             Logger.info(ClassWinterPlugin.class, "The absolute path of the obfuscated jar is [" + encryptedJarOrWar + "]");
             Logger.info(ClassWinterPlugin.class, "The absolute path of the obfuscated jar is [" + encryptedJarOrWar + "]");