SonarQube keeps reporting an issue for rule "may expose internal representation by returning reference to mutable object".
I fixed it based on a guide of the Carnegie Mellon University, but SonarQube still raises this issue:
public Date getDatime(){
return (Date)this.datime.clone();//IJTI-316
// .getDatime() may expose internal representation by returning *.datime
}
How can I resolve / avoid this issue?