aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-03-26 15:18:10 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2015-03-27 15:40:12 +0100
commit7ebe878335698392cd48fef42b23517cb250b469 (patch)
tree10c4cb0eca8d80209fc9a91644b3d69b3a9a53bb /sonar-core
parentb8962af7e846abbd93e8840326b5e16a22c694bf (diff)
downloadsonarqube-7ebe878335698392cd48fef42b23517cb250b469.tar.gz
sonarqube-7ebe878335698392cd48fef42b23517cb250b469.zip
cancel analysis when the snapshot is not found - SONAR-6340
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/computation/db/AnalysisReportDto.java22
1 files changed, 5 insertions, 17 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/computation/db/AnalysisReportDto.java b/sonar-core/src/main/java/org/sonar/core/computation/db/AnalysisReportDto.java
index d5cfc718ccf..d290959407e 100644
--- a/sonar-core/src/main/java/org/sonar/core/computation/db/AnalysisReportDto.java
+++ b/sonar-core/src/main/java/org/sonar/core/computation/db/AnalysisReportDto.java
@@ -42,10 +42,6 @@ public class AnalysisReportDto {
return report;
}
- public void setId(Long id) {
- this.id = id;
- }
-
public String getProjectKey() {
return projectKey;
}
@@ -64,14 +60,6 @@ public class AnalysisReportDto {
return this;
}
- public void fail() {
- this.status = Status.FAILED;
- }
-
- public void succeed() {
- this.status = Status.SUCCESS;
- }
-
public String getUuid() {
return uuid;
}
@@ -85,6 +73,10 @@ public class AnalysisReportDto {
return id;
}
+ public void setId(Long id) {
+ this.id = id;
+ }
+
@Override
public String toString() {
return Objects.toStringHelper(this)
@@ -137,10 +129,6 @@ public class AnalysisReportDto {
}
public static enum Status {
- PENDING, WORKING, SUCCESS, FAILED;
-
- public boolean isInFinalState() {
- return SUCCESS.equals(this) || FAILED.equals(this);
- }
+ PENDING, WORKING, SUCCESS, FAILED, CANCELLED
}
}