Assuming we had this class
final class Foo { private final Set bar = new HashSet<>(); public Foo() { bar.add(\"one\");
Your Foo and bar are actually immutable. it is thread-safe.
Foo
bar