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

Comparing jsr166/src/main/java/util/concurrent/ConcurrentHashMap.java (file contents):
Revision 1.274 by jsr166, Sun Sep 6 00:57:56 2015 UTC vs.
Revision 1.275 by jsr166, Wed Sep 9 02:46:48 2015 UTC

# Line 2075 | Line 2075 | public class ConcurrentHashMap<K,V> exte
2075      // Hashtable legacy methods
2076  
2077      /**
2078 <     * Legacy method testing if some key maps into the specified value
2079 <     * in this table.
2078 >     * Tests if some key maps into the specified value in this table.
2079       *
2080 <     * @deprecated This method is identical in functionality to
2080 >     * <p>Note that this method is identical in functionality to
2081       * {@link #containsValue(Object)}, and exists solely to ensure
2082       * full compatibility with class {@link java.util.Hashtable},
2083 <     * which supported this method prior to introduction of the
2084 <     * Java Collections framework.
2083 >     * which supported this method prior to introduction of the Java
2084 >     * Collections Framework.
2085       *
2086       * @param  value a value to search for
2087       * @return {@code true} if and only if some key maps to the
# Line 2091 | Line 2090 | public class ConcurrentHashMap<K,V> exte
2090       *         {@code false} otherwise
2091       * @throws NullPointerException if the specified value is null
2092       */
2094    @Deprecated
2093      public boolean contains(Object value) {
2094          return containsValue(value);
2095      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines