]> source.dussan.org Git - sonarqube.git/commitdiff
Fix some Java quality flaws
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 16 Jul 2013 08:07:21 +0000 (10:07 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 16 Jul 2013 08:07:50 +0000 (10:07 +0200)
sonar-core/src/main/java/org/sonar/core/issue/IssueNotifications.java
sonar-core/src/main/java/org/sonar/core/persistence/DryRunDatabaseFactory.java
sonar-plugin-api/src/main/java/org/sonar/api/measures/FileLinesContext.java

index 28fbe6b268c7b00a5ac6f63ea9d7b746c4628ec6..93d67e5c62d852487e724e84cf18f8bbacf42105 100644 (file)
@@ -86,7 +86,8 @@ public class IssueNotifications implements BatchComponent, ServerComponent {
   }
 
   @CheckForNull
-  private Notification createChangeNotification(DefaultIssue issue, IssueChangeContext context, Rule rule, Component project, @Nullable Component component, @Nullable String comment) {
+  private Notification createChangeNotification(DefaultIssue issue, IssueChangeContext context, Rule rule, Component project,
+                                                @Nullable Component component, @Nullable String comment) {
     FieldDiffs currentChange = issue.currentChange();
     if (comment == null && (currentChange == null || currentChange.diffs().isEmpty())) {
       return null;
index 5f89ef9895f814231cc9da465509e61cde511dd1..27a8445f42b90d5c179c92edadfb131d3a2c2786 100644 (file)
@@ -81,7 +81,8 @@ public class DryRunDatabaseFactory implements ServerComponent {
       .copyTable(source, dest, "alerts");
     if (projectId != null) {
       String snapshotCondition = "islast=" + database.getDialect().getTrueSqlValue() + " and (project_id=" + projectId + " or root_project_id=" + projectId + ")";
-      template.copyTable(source, dest, "projects", "id in (select project_id from snapshots where " + snapshotCondition + ") or (id=" + projectId + " or root_id=" + projectId + ")");
+      template.copyTable(source, dest, "projects",
+        "id in (select project_id from snapshots where " + snapshotCondition + ") or (id=" + projectId + " or root_id=" + projectId + ")");
       template.copyTable(source, dest, "snapshots", snapshotCondition);
 
       String forRootModule = "(root_component_id in (select id from projects where id=" + projectId + " and qualifier='TRK'))";
index 46e10d62f94b0da1635dbf0bc4d836a4e6ea879e..b88d0c6f0010cc30c9ac361a8d101c5b1a0329fe 100644 (file)
@@ -34,8 +34,8 @@ import com.google.common.annotations.Beta;
  * Also note that you can't update what already was saved, however it is safe to call {@link #save()} several times.
  * <p>
  * Instances of this interface can be obtained using {@link FileLinesContextFactory}.
- *
- * <p>This interface is not intended to be implemented by clients.</p>
+ * <p/>
+ * This interface is not intended to be implemented by clients.
  *
  * @since 2.14
  */