ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/test/jtreg/util/Spliterator/SpliteratorTraversingAndSplittingTest.java
(Generate patch)

Comparing jsr166/src/test/jtreg/util/Spliterator/SpliteratorTraversingAndSplittingTest.java (file contents):
Revision 1.3 by jsr166, Mon Nov 16 04:36:58 2015 UTC vs.
Revision 1.4 by jsr166, Thu Apr 7 17:43:07 2016 UTC

# Line 1 | Line 1
1   /*
2 < * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
2 > * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
3   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4   *
5   * This code is free software; you can redistribute it and/or modify it
# Line 154 | Line 154 | public class SpliteratorTraversingAndSpl
154          }
155  
156          void addList(Function<Collection<T>, ? extends List<T>> l) {
157            // @@@ If collection is instance of List then add sub-list tests
157              addCollection(l);
158 +            addCollection(l.andThen(list -> list.subList(0, list.size())));
159          }
160  
161          void addMap(Function<Map<T, T>, ? extends Map<T, T>> m) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines