MCPcopy Create free account
hub / github.com/antlr/codebuff / remove

Method remove

corpus/java/training/guava/collect/Maps.java:3806–3819  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

3804 }
3805
3806 @Override
3807 public boolean remove(Object o) {
3808 try {
3809 return super.remove(o);
3810 } catch (UnsupportedOperationException e) {
3811 for (Entry<K, V> entry : map().entrySet()) {
3812 if (Objects.equal(o, entry.getValue())) {
3813 map().remove(entry.getKey());
3814 return true;
3815 }
3816 }
3817 return false;
3818 }
3819 }
3820
3821 @Override
3822 public boolean removeAll(Collection<?> c) {

Callers

nothing calls this directly

Calls 6

mapMethod · 0.95
equalMethod · 0.95
removeMethod · 0.65
entrySetMethod · 0.65
getValueMethod · 0.65
getKeyMethod · 0.65

Tested by

no test coverage detected