]> source.dussan.org Git - sonarqube.git/commitdiff
Fix violations
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Fri, 28 Sep 2012 07:23:06 +0000 (09:23 +0200)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Fri, 28 Sep 2012 07:31:01 +0000 (09:31 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/database/model/ResourceModel.java

index 59b735a0138ab45509706a0c8acc7f1aded0b6f4..6191be4c9a72e2ece0e07a4a23b6bc6214941444 100644 (file)
@@ -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