From: Fabrice Bellingard Date: Fri, 28 Sep 2012 07:23:06 +0000 (+0200) Subject: Fix violations X-Git-Tag: 3.3~181 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8cd5a9d5523f1efa5f0ff3cfa6d196590f856845;p=sonarqube.git Fix violations --- 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