summaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-08-03 01:04:20 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-08-05 19:32:11 +0200
commit5a6aa5d5a28b0ee5fe50972d443061e1e3becde5 (patch)
tree1e50a43d8313703afa95b62e8bd946dbc6f34ffb /sonar-core
parentc3e3ac9088c896048f09721acf9194a60a8a886a (diff)
downloadsonarqube-5a6aa5d5a28b0ee5fe50972d443061e1e3becde5.tar.gz
sonarqube-5a6aa5d5a28b0ee5fe50972d443061e1e3becde5.zip
Add column LOCATIONS to db table ISSUES
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java
index 9f3fcb16170..7c2fd24f6cc 100644
--- a/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java
+++ b/sonar-core/src/main/java/org/sonar/core/issue/DefaultIssue.java
@@ -87,7 +87,8 @@ public class DefaultIssue implements Issue, Trackable {
private String actionPlanKey;
private List<IssueComment> comments = null;
private Set<String> tags = null;
-
+ // temporarily an Object as long as DefaultIssue is used by sonar-batch
+ private Object locations = null;
// FUNCTIONAL DATES
private Date creationDate;
private Date updateDate;
@@ -557,6 +558,14 @@ public class DefaultIssue implements Issue, Trackable {
return this;
}
+ public <T> T getLocations() {
+ return (T)locations;
+ }
+
+ public void setLocations(Object locations) {
+ this.locations = locations;
+ }
+
@Override
public boolean equals(Object o) {
if (this == o) {