Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring #104

Merged
merged 6 commits into from
Feb 23, 2017
Merged

Refactoring #104

merged 6 commits into from
Feb 23, 2017

Conversation

aNNiMON
Copy link
Owner

@aNNiMON aNNiMON commented Feb 23, 2017

After this update stacktrace will be more readable.

Before:

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 20, Size: 1
	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
	at java.util.ArrayList.get(ArrayList.java:429)
	at Test$5.test(Test.java:29)
	at Test$5.test(Test.java:26)
	at com.annimon.stream.Stream$6.nextIteration(Stream.java:570)
	at com.annimon.stream.Stream$6.hasNext(Stream.java:549)
	at com.annimon.stream.Stream$8.hasNext(Stream.java:660)
	at com.annimon.stream.Stream.toList(Stream.java:1689)
	at com.annimon.stream.Stream$19.nextIteration(Stream.java:1049)
	at com.annimon.stream.LsaExtIterator.hasNext(LsaExtIterator.java:20)
	at com.annimon.stream.Stream$12.nextIteration(Stream.java:774)
	at com.annimon.stream.LsaExtIterator.hasNext(LsaExtIterator.java:20)
	at com.annimon.stream.Stream$9.hasNext(Stream.java:684)
	at com.annimon.stream.IntStream$16.hasNext(IntStream.java:740)
	at com.annimon.stream.IntStream.forEach(IntStream.java:1027)
	at com.annimon.stream.IntStream.toArray(IntStream.java:1109)
	at Test.main(Test.java:57)

After:

Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 20, Size: 1
	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
	at java.util.ArrayList.get(ArrayList.java:429)
	at Test$5.test(Test.java:29)
	at Test$5.test(Test.java:26)
	at com.annimon.stream.operator.ObjFilter.nextIteration(ObjFilter.java:43)
	at com.annimon.stream.operator.ObjFilter.hasNext(ObjFilter.java:22)
	at com.annimon.stream.operator.ObjMap.hasNext(ObjMap.java:19)
	at com.annimon.stream.internal.Operators.toList(Operators.java:15)
	at com.annimon.stream.operator.ObjSorted.nextIteration(ObjSorted.java:24)
	at com.annimon.stream.LsaExtIterator.hasNext(LsaExtIterator.java:20)
	at com.annimon.stream.operator.ObjFlatMap.nextIteration(ObjFlatMap.java:27)
	at com.annimon.stream.LsaExtIterator.hasNext(LsaExtIterator.java:20)
	at com.annimon.stream.operator.ObjMapToInt.hasNext(ObjMapToInt.java:19)
	at com.annimon.stream.operator.IntPeek.hasNext(IntPeek.java:18)
	at com.annimon.stream.internal.Operators.toIntArray(Operators.java:39)
	at com.annimon.stream.IntStream.toArray(IntStream.java:784)
	at Test.main(Test.java:57)

@coveralls
Copy link

coveralls commented Feb 23, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 178c6cb on named-operators-refactoring into 8fd4f8b on master.

@aNNiMON aNNiMON merged commit 684d946 into master Feb 23, 2017
@aNNiMON aNNiMON deleted the named-operators-refactoring branch February 23, 2017 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants