# | Line 989 | Line 989 | public class ConcurrentHashMapV8<K, V> | |
---|---|---|
989 | */ | |
990 | public int size() { | |
991 | long n = counter.sum(); | |
992 | < | return (n <= 0L) ? 0 : |
993 | < | (n >= Integer.MAX_VALUE) ? Integer.MAX_VALUE : |
994 | < | (int)n; |
992 | > | return ((n >>> 31) == 0) ? (int)n : (n < 0L) ? 0 : Integer.MAX_VALUE; |
993 | } | |
994 | ||
995 | /** |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |