Skip to content

Commit

Permalink
Bugfix ArrayList8.mapAndCollect()
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBolot committed Mar 16, 2018
1 parent b64e63b commit 535afa2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/CodingUtils/ArrayList8.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
.
. The ArrayList8 Class was Coded by : Alexandre BOLOT
.
. Last Modified : 16/03/18 14:59
. Last Modified : 16/03/18 15:19
.
. Contact : bolotalex06@gmail.com
...............................................................................................................................*/
Expand Down Expand Up @@ -159,7 +159,7 @@ public <R> Stream<R> map (@NotNull Function<? super E, ? extends R> mapper)

public <R> ArrayList8<R> mapAndCollect (@NotNull Function<? super E, ? extends R> mapper)
{
return this.stream().map(mapper).collect(Collectors.toCollection(ArrayList8::new));
return this.stream().map(mapper).collect(Collectors.toCollection(ArrayList8<R>::new));
}
//endregion
}

0 comments on commit 535afa2

Please sign in to comment.