I just started using Firebug in my IntelliJ project.
private byte[] image;
public byte[] getImage() {
return image;
}
public void setImage(byte[] image) {
this.image = image;
}
Firebug gives me the error :
May expose internal representation by incorporating reference to mutable object
I really don't understand what the error means and how I can mitigate it.
EDIT
I also get this error with my constructor:
public Design(byte[] image){
this.image = image;
}
I fixed the error on the Getter thanks to a post and understand what it means, But the errors on the constructor en setter are not very clear to me.