From: Simon Brandhof Date: Sun, 24 Jun 2018 20:27:35 +0000 (+0200) Subject: Delete unused class RequirementMigrationDto X-Git-Tag: 7.5~899 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a42e29c3bed2d012d130a3b3fd6e7355577fd84f;p=sonarqube.git Delete unused class RequirementMigrationDto --- diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/MyBatis.java b/server/sonar-db-dao/src/main/java/org/sonar/db/MyBatis.java index 82967d9b259..f26fffb5ef8 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/MyBatis.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/MyBatis.java @@ -52,7 +52,6 @@ import org.sonar.db.component.SnapshotDto; import org.sonar.db.component.SnapshotMapper; import org.sonar.db.component.UuidWithProjectUuidDto; import org.sonar.db.component.ViewsSnapshotDto; -import org.sonar.db.debt.RequirementMigrationDto; import org.sonar.db.duplication.DuplicationMapper; import org.sonar.db.duplication.DuplicationUnitDto; import org.sonar.db.es.EsQueueMapper; @@ -182,7 +181,6 @@ public class MyBatis implements Startable { confBuilder.loadAlias("PurgeableAnalysis", PurgeableAnalysisDto.class); confBuilder.loadAlias("QualityGateCondition", QualityGateConditionDto.class); confBuilder.loadAlias("QualityGate", QualityGateDto.class); - confBuilder.loadAlias("RequirementMigration", RequirementMigrationDto.class); confBuilder.loadAlias("Resource", ResourceDto.class); confBuilder.loadAlias("RuleParam", RuleParamDto.class); confBuilder.loadAlias("Rule", RuleDto.class); diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/debt/RequirementMigrationDto.java b/server/sonar-db-dao/src/main/java/org/sonar/db/debt/RequirementMigrationDto.java deleted file mode 100644 index 03c60976168..00000000000 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/debt/RequirementMigrationDto.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2018 SonarSource SA - * mailto:info AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -package org.sonar.db.debt; - -import java.io.Serializable; -import java.util.Date; -import javax.annotation.CheckForNull; -import javax.annotation.Nullable; - -/** - * Only used in {@link org.sonar.server.startup.CopyRequirementsFromCharacteristicsToRules} - */ -public class RequirementMigrationDto implements Serializable { - - private Integer id; - private Integer parentId; - private Integer rootId; - private Integer ruleId; - private String functionKey; - private Double coefficientValue; - private String coefficientUnit; - private Double offsetValue; - private String offsetUnit; - private Date createdAt; - private Date updatedAt; - private boolean enabled; - - public Integer getId() { - return id; - } - - public RequirementMigrationDto setId(Integer id) { - this.id = id; - return this; - } - - public Integer getParentId() { - return parentId; - } - - public RequirementMigrationDto setParentId(Integer i) { - this.parentId = i; - return this; - } - - public Integer getRootId() { - return rootId; - } - - public RequirementMigrationDto setRootId(Integer rootId) { - this.rootId = rootId; - return this; - } - - public Integer getRuleId() { - return ruleId; - } - - public RequirementMigrationDto setRuleId(Integer ruleId) { - this.ruleId = ruleId; - return this; - } - - public String getFunction() { - return functionKey; - } - - public RequirementMigrationDto setFunction(String function) { - this.functionKey = function; - return this; - } - - @CheckForNull - public Double getCoefficientValue() { - return coefficientValue; - } - - public RequirementMigrationDto setCoefficientValue(@Nullable Double coefficientValue) { - this.coefficientValue = coefficientValue; - return this; - } - - @CheckForNull - public String getCoefficientUnit() { - return coefficientUnit; - } - - public RequirementMigrationDto setCoefficientUnit(@Nullable String coefficientUnit) { - this.coefficientUnit = coefficientUnit; - return this; - } - - @CheckForNull - public Double getOffsetValue() { - return offsetValue; - } - - public RequirementMigrationDto setOffsetValue(@Nullable Double offset) { - this.offsetValue = offset; - return this; - } - - @CheckForNull - public String getOffsetUnit() { - return offsetUnit; - } - - public RequirementMigrationDto setOffsetUnit(@Nullable String offsetUnit) { - this.offsetUnit = offsetUnit; - return this; - } - - public Date getCreatedAt() { - return createdAt; - } - - public RequirementMigrationDto setCreatedAt(Date createdAt) { - this.createdAt = createdAt; - return this; - } - - @CheckForNull - public Date getUpdatedAt() { - return updatedAt; - } - - public RequirementMigrationDto setUpdatedAt(@Nullable Date updatedAt) { - this.updatedAt = updatedAt; - return this; - } - - public boolean isEnabled() { - return enabled; - } - - public RequirementMigrationDto setEnabled(boolean enabled) { - this.enabled = enabled; - return this; - } - -} diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/debt/package-info.java b/server/sonar-db-dao/src/main/java/org/sonar/db/debt/package-info.java deleted file mode 100644 index 9e551d9bca4..00000000000 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/debt/package-info.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * SonarQube - * Copyright (C) 2009-2018 SonarSource SA - * mailto:info AT sonarsource DOT com - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ -@ParametersAreNonnullByDefault -package org.sonar.db.debt; - -import javax.annotation.ParametersAreNonnullByDefault; -