Skip to content

Instantly share code, notes, and snippets.

@rschildmeijer
Created July 31, 2012 09:03
Show Gist options
  • Save rschildmeijer/3215291 to your computer and use it in GitHub Desktop.
Save rschildmeijer/3215291 to your computer and use it in GitHub Desktop.
excessive synchronization
Multimap<K, V> multimap = Multimaps.synchronizedMultimap(HashMultimap.<K, V>create());
..
synchronize(multimap) {
multimap.put(k, v);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment