changeset 6044:0c92c66120f5

remove redundant null checks and unused constant
author mduigou
date Fri, 21 Sep 2012 16:43:46 -0700
parents 51d2d8fa4673
children 37342573989e
files src/share/classes/java/util/streams/ops/MapSortedOp.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/streams/ops/MapSortedOp.java	Fri Sep 21 16:30:57 2012 -0700
+++ b/src/share/classes/java/util/streams/ops/MapSortedOp.java	Fri Sep 21 16:43:46 2012 -0700
@@ -38,7 +38,6 @@
  *
  */
 public class MapSortedOp<K extends Comparable<? super K>, V> extends SortedOp<Mapping<K, V>> {
-    private static final int DEFAULT_PRIORITY_QUEUE_SIZE = 16;
 
     /**
      * Sort using natural order of {@literal <K>} which must be
@@ -55,7 +54,7 @@
      * @param comparator The comparator to be used to evaluate ordering.
      */
     public MapSortedOp(Comparator<? super Mapping<K,V>> comparator) {
-        super(Objects.requireNonNull(comparator));
+        super(comparator);
     }
 
     @Override
@@ -66,7 +65,6 @@
 
     @Override
     public MapIterator<K,V> wrapIterator(Iterator<Mapping<K, V>> iterator) {
-        Objects.requireNonNull(iterator);
         return MapIterator.IteratorAdapter.adapt(super.wrapIterator(iterator));
     }