the below code is giving an error when running through SonalQube for code Vulnerability.
public class Myclass{
String[] text;
public MyClass(String [] texts){
this.texts = texts;
}
}
The above code is throwing vulnerability error: May Expose Internal Representation by storing an external mutable object