ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/concurrent/ConcurrentSkipListMap.java
(Generate patch)

Comparing jsr166/src/main/java/util/concurrent/ConcurrentSkipListMap.java (file contents):
Revision 1.72 by jsr166, Fri Jun 3 02:28:05 2011 UTC vs.
Revision 1.73 by jsr166, Mon Jun 6 05:29:30 2011 UTC

# Line 2392 | Line 2392 | public class ConcurrentSkipListMap<K,V>
2392          public boolean contains(Object o) {
2393              if (!(o instanceof Map.Entry))
2394                  return false;
2395 <            Map.Entry<K1,V1> e = (Map.Entry<K1,V1>)o;
2395 >            Map.Entry<?,?> e = (Map.Entry<?,?>)o;
2396              V1 v = m.get(e.getKey());
2397              return v != null && v.equals(e.getValue());
2398          }
2399          public boolean remove(Object o) {
2400              if (!(o instanceof Map.Entry))
2401                  return false;
2402 <            Map.Entry<K1,V1> e = (Map.Entry<K1,V1>)o;
2402 >            Map.Entry<?,?> e = (Map.Entry<?,?>)o;
2403              return m.remove(e.getKey(),
2404                              e.getValue());
2405          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines