}
@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;
.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'))";
* 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
*/