mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-17 06:59:29 +00:00
docs: improve fluent interface
This commit is contained in:
@@ -42,7 +42,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
* {@link SimpleFluentIterable} evaluates eagerly and would be too costly for real world
|
||||
* applications. The {@link LazyFluentIterable} is evaluated on termination. Their usage is
|
||||
* demonstrated with a simple number list that is filtered, transformed and collected. The result is
|
||||
* printed afterwards.
|
||||
* printed afterward.
|
||||
*/
|
||||
@Slf4j
|
||||
public class App {
|
||||
|
||||
+1
-1
@@ -191,7 +191,7 @@ public abstract class FluentIterableTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
void testSpliterator() throws Exception {
|
||||
void testSpliterator() {
|
||||
final var integers = List.of(1, 2, 3);
|
||||
final var split = createFluentIterable(integers).spliterator();
|
||||
assertNotNull(split);
|
||||
|
||||
Reference in New Issue
Block a user