Skip to content

Commit 5c1a8d1

Browse files
committed
3.2.7 removing need for Spliterators.EmptySpliterator hack
1 parent 9a4f0e2 commit 5c1a8d1

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

sources/net.sf.j2s.java.core/src/java/util/Spliterators.java

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -870,32 +870,12 @@ private static final class OfInt
870870
implements Spliterator.OfInt {
871871
OfInt() { }
872872

873-
/**
874-
* Was necessary for SwingJS
875-
*/
876-
@Override
877-
public boolean tryAdvance(IntConsumer consumer) {
878-
Objects.requireNonNull(consumer);
879-
return false;
880-
}
881-
882-
883873
}
884874

885875
private static final class OfLong
886876
extends EmptySpliterator<Long, Spliterator.OfLong, LongConsumer>
887877
implements Spliterator.OfLong {
888878
OfLong() { }
889-
890-
/**
891-
* Was necessary for SwingJS
892-
*/
893-
@Override
894-
public boolean tryAdvance(LongConsumer consumer) {
895-
Objects.requireNonNull(consumer);
896-
return false;
897-
}
898-
899879

900880
}
901881

@@ -904,16 +884,6 @@ private static final class OfDouble
904884
implements Spliterator.OfDouble {
905885
OfDouble() { }
906886

907-
/**
908-
* Was necessary for SwingJS
909-
*/
910-
@Override
911-
public boolean tryAdvance(DoubleConsumer consumer) {
912-
Objects.requireNonNull(consumer);
913-
return false;
914-
}
915-
916-
917887
}
918888
}
919889

0 commit comments

Comments
 (0)