List list = Collections.synchronizedList(new ArrayList()); synchronized (list) { list.add(\"message\"); }
Is the bl
The underlying code for Collections.synchronizedList add method is:
public void add(int index, E element) { synchronized (mutex) {list.add(index, element);} }
So in your example it is not needed to add synchronisation.