--- jsr166/src/jsr166x/ConcurrentSkipListSet.java 2010/09/01 20:12:39 1.9 +++ jsr166/src/jsr166x/ConcurrentSkipListSet.java 2012/10/21 06:14:11 1.14 @@ -1,7 +1,7 @@ /* * Written by Doug Lea with assistance from members of JCP JSR-166 * Expert Group and released to the public domain, as explained at - * http://creativecommons.org/licenses/publicdomain + * http://creativecommons.org/publicdomain/zero/1.0/ */ package jsr166x; @@ -253,7 +253,7 @@ public class ConcurrentSkipListSet Collection c = (Collection) o; try { return containsAll(c) && c.containsAll(this); - } catch (ClassCastException unused) { + } catch (ClassCastException unused) { return false; } catch (NullPointerException unused) { return false; @@ -471,7 +471,6 @@ public class ConcurrentSkipListSet * in {@link IllegalArgumentException}. Instances of this class are * constructed only using the subSet, headSet, and * tailSet methods of their underlying sets. - * */ static class ConcurrentSkipListSubSet extends AbstractSet @@ -487,7 +486,7 @@ public class ConcurrentSkipListSet * @param fromElement inclusive least value, or null if from start * @param toElement exclusive upper bound or null if to end * @throws IllegalArgumentException if fromElement and toElement - * nonnull and fromElement greater than toElement + * non-null and fromElement greater than toElement */ ConcurrentSkipListSubSet(ConcurrentSkipListMap map, E fromElement, E toElement) { @@ -541,11 +540,11 @@ public class ConcurrentSkipListSet } public E pollFirst() { Map.Entry e = s.pollFirstEntry(); - return (e == null)? null : e.getKey(); + return (e == null) ? null : e.getKey(); } public E pollLast() { Map.Entry e = s.pollLastEntry(); - return (e == null)? null : e.getKey(); + return (e == null) ? null : e.getKey(); } }