diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-03-27 23:43:19 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-03-27 23:43:19 +0200 |
commit | d4ae5228bb668e65baa644b52d41286d5f3d55cd (patch) | |
tree | 8b3f18401fade28db31c1b9364e2f4ebad2b017d /sonar-batch | |
parent | 2b560c35ab24a4f7db27d7e180a64e830b9a56a1 (diff) | |
download | sonarqube-d4ae5228bb668e65baa644b52d41286d5f3d55cd.tar.gz sonarqube-d4ae5228bb668e65baa644b52d41286d5f3d55cd.zip |
Fix coding violations
Diffstat (limited to 'sonar-batch')
4 files changed, 3 insertions, 6 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/Module.java b/sonar-batch/src/main/java/org/sonar/batch/Module.java index f4ee3279c2d..6bf82c97051 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/Module.java +++ b/sonar-batch/src/main/java/org/sonar/batch/Module.java @@ -46,7 +46,7 @@ public abstract class Module { /** * @return this */ - private final Module init(MutablePicoContainer container) { + private Module init(MutablePicoContainer container) { this.container = container; configure(); return this; diff --git a/sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshotFinderByPreviousAnalysis.java b/sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshotFinderByPreviousAnalysis.java index 2168ad2bfb4..d3eb23519e9 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshotFinderByPreviousAnalysis.java +++ b/sonar-batch/src/main/java/org/sonar/batch/components/PastSnapshotFinderByPreviousAnalysis.java @@ -23,14 +23,12 @@ import org.sonar.api.BatchExtension; import org.sonar.api.CoreProperties; import org.sonar.api.database.DatabaseSession; import org.sonar.api.database.model.Snapshot; -import org.sonar.api.resources.Project; +import org.sonar.api.resources.Qualifiers; import org.sonar.api.utils.DateUtils; import java.text.SimpleDateFormat; import java.util.List; -import org.sonar.api.resources.Qualifiers; - public class PastSnapshotFinderByPreviousAnalysis implements BatchExtension { private DatabaseSession session; diff --git a/sonar-batch/src/main/java/org/sonar/batch/components/TimeMachineConfiguration.java b/sonar-batch/src/main/java/org/sonar/batch/components/TimeMachineConfiguration.java index fb8d071f5d2..ff317f2b01a 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/components/TimeMachineConfiguration.java +++ b/sonar-batch/src/main/java/org/sonar/batch/components/TimeMachineConfiguration.java @@ -27,7 +27,6 @@ import org.sonar.api.BatchExtension; import org.sonar.api.CoreProperties; import org.sonar.api.database.model.Snapshot; import org.sonar.api.resources.Qualifiers; -import org.sonar.api.resources.Resource; import org.sonar.api.utils.Logs; import java.util.Collections; diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java index ca65806e20e..157867cbe2a 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java +++ b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultResourcePersister.java @@ -228,7 +228,7 @@ public final class DefaultResourcePersister implements ResourcePersister { return model; } catch (NonUniqueResultException e) { - throw new SonarException("The resource '" + resource.getEffectiveKey() + "' is duplicated in database."); + throw new SonarException("The resource '" + resource.getEffectiveKey() + "' is duplicated in database.", e); } } |