Skip to content

Commit

Permalink
Fix checkstyle line wraps
Browse files Browse the repository at this point in the history
  • Loading branch information
niloc132 committed Nov 7, 2023
1 parent a98d998 commit 8f3fc96
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ static DoubleStream of(double t) {
default DoubleStream dropWhile(DoublePredicate predicate) {
Spliterator.OfDouble prev = spliterator();
Spliterator.OfDouble spliterator =
new Spliterators.AbstractDoubleSpliterator(
prev.estimateSize(), prev.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
new Spliterators.AbstractDoubleSpliterator(prev.estimateSize(),
prev.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
private boolean drop = true;
private boolean found;

Expand Down Expand Up @@ -291,8 +291,8 @@ public boolean tryAdvance(DoubleConsumer action) {
default DoubleStream takeWhile(DoublePredicate predicate) {
Spliterator.OfDouble original = spliterator();
Spliterator.OfDouble spliterator =
new Spliterators.AbstractDoubleSpliterator(
original.estimateSize(), original.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
new Spliterators.AbstractDoubleSpliterator(original.estimateSize(),
original.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
private boolean take = true;
private boolean found;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ public boolean tryAdvance(IntConsumer action) {
default IntStream dropWhile(IntPredicate predicate) {
Spliterator.OfInt prev = spliterator();
Spliterator.OfInt spliterator =
new Spliterators.AbstractIntSpliterator(
prev.estimateSize(), prev.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
new Spliterators.AbstractIntSpliterator(prev.estimateSize(),
prev.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
private boolean drop = true;
private boolean found;

Expand Down Expand Up @@ -340,8 +340,8 @@ public boolean tryAdvance(IntConsumer action) {
default IntStream takeWhile(IntPredicate predicate) {
Spliterator.OfInt original = spliterator();
Spliterator.OfInt spliterator =
new Spliterators.AbstractIntSpliterator(
original.estimateSize(), original.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
new Spliterators.AbstractIntSpliterator(original.estimateSize(),
original.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
private boolean take = true;
private boolean found;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ public boolean tryAdvance(LongConsumer action) {
default LongStream dropWhile(LongPredicate predicate) {
Spliterator.OfLong prev = spliterator();
Spliterator.OfLong spliterator =
new Spliterators.AbstractLongSpliterator(
prev.estimateSize(), prev.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
new Spliterators.AbstractLongSpliterator(prev.estimateSize(),
prev.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
private boolean drop = true;
private boolean found;

Expand Down Expand Up @@ -338,8 +338,8 @@ public boolean tryAdvance(LongConsumer action) {
default LongStream takeWhile(LongPredicate predicate) {
Spliterator.OfLong original = spliterator();
Spliterator.OfLong spliterator =
new Spliterators.AbstractLongSpliterator(
original.estimateSize(), original.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
new Spliterators.AbstractLongSpliterator(original.estimateSize(),
original.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
private boolean take = true;
private boolean found;

Expand Down
8 changes: 4 additions & 4 deletions user/super/com/google/gwt/emul/java/util/stream/Stream.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ <R> R collect(
default Stream<T> dropWhile(Predicate<? super T> predicate) {
Spliterator<T> prev = spliterator();
Spliterator<T> spliterator =
new Spliterators.AbstractSpliterator<T>(
prev.estimateSize(), prev.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
new Spliterators.AbstractSpliterator<T>(prev.estimateSize(),
prev.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
private boolean drop = true;
private boolean found;

Expand Down Expand Up @@ -297,8 +297,8 @@ public boolean tryAdvance(Consumer<? super T> action) {
default Stream<T> takeWhile(Predicate<? super T> predicate) {
Spliterator<T> original = spliterator();
Spliterator<T> spliterator =
new Spliterators.AbstractSpliterator<T>(
original.estimateSize(), original.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
new Spliterators.AbstractSpliterator<T>(original.estimateSize(),
original.characteristics() & ~(Spliterator.SIZED | Spliterator.SUBSIZED)) {
private boolean take = true;
private boolean found;

Expand Down

0 comments on commit 8f3fc96

Please sign in to comment.