summaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-09-28 09:23:06 +0200
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>2012-09-28 09:31:01 +0200
commit8cd5a9d5523f1efa5f0ff3cfa6d196590f856845 (patch)
treeac14ac04df65c6015a6e3bed464be833229fb09c /sonar-plugin-api
parent4939a71b7d8a97e2bda14649c8381e3a983b0f25 (diff)
downloadsonarqube-8cd5a9d5523f1efa5f0ff3cfa6d196590f856845.tar.gz
sonarqube-8cd5a9d5523f1efa5f0ff3cfa6d196590f856845.zip
Fix violations
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/database/model/ResourceModel.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/database/model/ResourceModel.java b/sonar-plugin-api/src/main/java/org/sonar/api/database/model/ResourceModel.java
index 59b735a0138..6191be4c9a7 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/database/model/ResourceModel.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/database/model/ResourceModel.java
@@ -32,8 +32,6 @@ import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
@@ -268,11 +266,11 @@ public class ResourceModel extends BaseIdentifiable implements Cloneable {
}
public Date getCreatedAt() {
- return createdAt;
+ return createdAt; // NOSONAR May expose internal representation by returning reference to mutable object
}
public void setCreatedAt(Date createdAt) {
- this.createdAt = createdAt;
+ this.createdAt = createdAt; // NOSONAR May expose internal representation by returning reference to mutable object
}
@Override