From 98944027a5dd3bab759abff81f5bd77fb981537e Mon Sep 17 00:00:00 2001 From: Herve Boutemy Date: Sat, 27 Oct 2012 11:24:12 +0000 Subject: [PATCH] removed unused @SuppresWarnings git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@1402781 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/lifecycle/internal/LifecycleDebugLogger.java | 1 - .../maven/lifecycle/internal/LifecycleDependencyResolver.java | 1 - .../maven/lifecycle/internal/LifecyclePluginResolver.java | 1 - .../maven/lifecycle/internal/LifecycleThreadedBuilder.java | 1 - .../apache/maven/lifecycle/internal/LifecycleWeaveBuilder.java | 1 - .../apache/maven/lifecycle/internal/MojoDescriptorCreator.java | 2 -- .../java/org/apache/maven/lifecycle/internal/MojoExecutor.java | 1 - .../maven/lifecycle/internal/ThreadConfigurationService.java | 1 - 8 files changed, 9 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDebugLogger.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDebugLogger.java index 76c5e0b969..25a1e7d891 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDebugLogger.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDebugLogger.java @@ -53,7 +53,6 @@ public class LifecycleDebugLogger private Logger logger; - @SuppressWarnings( { "UnusedDeclaration" } ) public LifecycleDebugLogger() { } diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java index 32c9ab7eb8..a549ce2b33 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleDependencyResolver.java @@ -65,7 +65,6 @@ public class LifecycleDependencyResolver @Requirement private EventSpyDispatcher eventSpyDispatcher; - @SuppressWarnings({"UnusedDeclaration"}) public LifecycleDependencyResolver() { } diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecyclePluginResolver.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecyclePluginResolver.java index 208aa6dd26..c615a6f67a 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecyclePluginResolver.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecyclePluginResolver.java @@ -52,7 +52,6 @@ public class LifecyclePluginResolver this.pluginVersionResolver = pluginVersionResolver; } - @SuppressWarnings( { "UnusedDeclaration" } ) public LifecyclePluginResolver() { } diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleThreadedBuilder.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleThreadedBuilder.java index 6d4d0e1ccb..aa95f2a46d 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleThreadedBuilder.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleThreadedBuilder.java @@ -52,7 +52,6 @@ public class LifecycleThreadedBuilder private LifecycleModuleBuilder lifecycleModuleBuilder; - @SuppressWarnings( { "UnusedDeclaration" } ) public LifecycleThreadedBuilder() { } diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleWeaveBuilder.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleWeaveBuilder.java index 1e43dd60fd..12058e5307 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleWeaveBuilder.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/LifecycleWeaveBuilder.java @@ -87,7 +87,6 @@ public class LifecycleWeaveBuilder private Map executionPlans = new HashMap(); - @SuppressWarnings( { "UnusedDeclaration" } ) public LifecycleWeaveBuilder() { } diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java index 98440038cf..4347b3ce4e 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java @@ -60,7 +60,6 @@ import java.util.StringTokenizer; *

* NOTE: This class is not part of any public api and can be changed or deleted without prior notice. */ - @Component( role = MojoDescriptorCreator.class ) public class MojoDescriptorCreator { @@ -80,7 +79,6 @@ public class MojoDescriptorCreator @Requirement private LifecyclePluginResolver lifecyclePluginResolver; - @SuppressWarnings( { "UnusedDeclaration" } ) public MojoDescriptorCreator() { } diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java index 122ff3d400..48dde5e025 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java @@ -154,7 +154,6 @@ public class MojoExecutor phaseRecorder.observeExecution( mojoExecution ); } - @SuppressWarnings( { "ThrowableInstanceNeverThrown" } ) private void execute( MavenSession session, MojoExecution mojoExecution, ProjectIndex projectIndex, DependencyContext dependencyContext ) throws LifecycleExecutionException diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ThreadConfigurationService.java b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ThreadConfigurationService.java index cac7bc42e2..19b34bca3d 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ThreadConfigurationService.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/internal/ThreadConfigurationService.java @@ -38,7 +38,6 @@ public class ThreadConfigurationService private final int cpuCores; - @SuppressWarnings( { "UnusedDeclaration" } ) public ThreadConfigurationService() { cpuCores = Runtime.getRuntime().availableProcessors();