From 8cd5a9d5523f1efa5f0ff3cfa6d196590f856845 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Fri, 28 Sep 2012 09:23:06 +0200 Subject: [PATCH] Fix violations --- .../java/org/sonar/api/database/model/ResourceModel.java | 6 ++---- 1 file 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 -- 2.39.5