it is when the model is built so in a thread safe manner (enclosing code), no?
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-10-22 10:59 GMT+02:00 Mark Struberg <[email protected]>: > Hi! > > Just stumbled across the following code which is not thread safe. Do we > need this? > Or can we assume that this happens in a single thread anyway? > > public void addAnnotation(final Annotation annotation) { > this.annotations = ArrayUtils.add(annotations, annotation); > } > > LieGrue, > strub
