robolectric/robolectric — pull request #1120 by jongerrish (2014-06-03 22:27:05+00:00)
Title: Add synchronization around the listeners in ShadowClipboardManager

without synchronization tests fail:-

java.util.ConcurrentModificationException
at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859)
at java.util.ArrayList$Itr.next(ArrayList.java:831)
at org.robolectric.shadows.ShadowClipboardManager.setPrimaryClip(ShadowClipboardManager.java:27)
at android.content.ClipboardManager.setPrimaryClip(ClipboardManager.java)

Upstreamed from Google Docs