summaryrefslogtreecommitdiffstats
path: root/plugins/sonar-maven-batch-plugin
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-07-31 10:30:54 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-08-01 10:43:03 +0200
commitc2b40be7f722bfd9c96c0639f4650bca60c859f8 (patch)
treed34336b5a13fd1084769638a12fa6220065b0cd7 /plugins/sonar-maven-batch-plugin
parent102fcaa285b796f70f1c422267360118dec3dd05 (diff)
downloadsonarqube-c2b40be7f722bfd9c96c0639f4650bca60c859f8.tar.gz
sonarqube-c2b40be7f722bfd9c96c0639f4650bca60c859f8.zip
Fix minor quality flaws
Diffstat (limited to 'plugins/sonar-maven-batch-plugin')
-rw-r--r--plugins/sonar-maven-batch-plugin/src/main/java/org/sonar/plugins/maven/DefaultMavenPluginExecutor.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/sonar-maven-batch-plugin/src/main/java/org/sonar/plugins/maven/DefaultMavenPluginExecutor.java b/plugins/sonar-maven-batch-plugin/src/main/java/org/sonar/plugins/maven/DefaultMavenPluginExecutor.java
index 1b7f96a5eaf..f1e532514ea 100644
--- a/plugins/sonar-maven-batch-plugin/src/main/java/org/sonar/plugins/maven/DefaultMavenPluginExecutor.java
+++ b/plugins/sonar-maven-batch-plugin/src/main/java/org/sonar/plugins/maven/DefaultMavenPluginExecutor.java
@@ -105,11 +105,9 @@ public class DefaultMavenPluginExecutor implements MavenPluginExecutor {
}
if (executeMethod.getParameterTypes().length == 1) {
concreteExecuteMaven3(pom, goal);
- }
- else if (executeMethod.getParameterTypes().length == 3) {
+ } else if (executeMethod.getParameterTypes().length == 3) {
concreteExecuteMaven2(executeMethod, pom, goal);
- }
- else {
+ } else {
throw new SonarException("Unexpected parameter count on Maven LifecycleExecutor#execute method. Please check your Maven version.");
}
}