private List<String> list;
public List<String> getList()
{
return list; // already unmodifiable
}
public void setList(List<String> list)
{
this.list = Collections.unmodifiableList(list);
}
public void setList(List<String> list)
{
this.list = UnmodifiableList.decorate(list);
}
public void setList(List<String> list)
{
this.list = ImmutableList.copyOf(list);
}
--
Important: this SonarQube Google Group will close on June 11th, 2018, in order to move to a new forum to power even more community discussions. See details in this post: https://groups.google.com/d/msg/sonarqube/BbSZz-JnhVM/DavhMueEAAAJ
---
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/iKCGJSZqHEw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/0f7a463a-a302-44c4-95c9-fcf04ddf493d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.