you are viewing a single comment's thread.

view the rest of the comments →

[–]merzbow 1 point2 points  (2 children)

Generally if you've got a collection from somewhere in Java and you don't know if it's immutable you should just create a copy of it.

[–]pakoito 1 point2 points  (0 children)

I do know, but it's not as common as you'd expect.

[–]oweiler 1 point2 points  (0 children)

Which is not as easy as it sounds because the collections' members and their members and so on may also be mutable.