--- jsr166/src/extra166y/CustomConcurrentHashMap.java 2010/10/16 16:40:44 1.13 +++ jsr166/src/extra166y/CustomConcurrentHashMap.java 2010/10/22 05:18:30 1.14 @@ -56,7 +56,7 @@ import sun.misc.Unsafe; * return x instanceof Person && k.name.equals(((Person)x).name); * } * public int hash(Object x) { - * return (x instanceof Person)? ((Person)x).name.hashCode() : 0; + * return (x instanceof Person) ? ((Person)x).name.hashCode() : 0; * } * }, * STRONG, EQUALS, 0); @@ -1010,7 +1010,7 @@ public class CustomConcurrentHashMap= Integer.MAX_VALUE? Integer.MAX_VALUE : (int)sum; + return (sum >= Integer.MAX_VALUE) ? Integer.MAX_VALUE : (int) sum; } /** @@ -1158,7 +1158,7 @@ public class CustomConcurrentHashMap * map.compute(word, new RemappingFunction<String,Integer>() { * public Integer remap(String k, Integer v) { - * return v == null? 1 : v + 1; + * return (v == null) ? 1 : v + 1; * }}); * * @@ -1975,7 +1975,7 @@ public class CustomConcurrentHashMap