You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polygene.apache.org by pa...@apache.org on 2016/12/08 23:44:11 UTC
[02/13] zest-java git commit: bootstrap: minor, simplify
bootstrap: minor, simplify
Project: http://git-wip-us.apache.org/repos/asf/zest-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/zest-java/commit/a6ba8b55
Tree: http://git-wip-us.apache.org/repos/asf/zest-java/tree/a6ba8b55
Diff: http://git-wip-us.apache.org/repos/asf/zest-java/diff/a6ba8b55
Branch: refs/heads/develop
Commit: a6ba8b55d5539ba6fbe57884100f88567cb63b8a
Parents: 447695d
Author: Paul Merlin <pa...@apache.org>
Authored: Tue Dec 6 19:06:16 2016 +0100
Committer: Paul Merlin <pa...@apache.org>
Committed: Tue Dec 6 19:06:16 2016 +0100
----------------------------------------------------------------------
.../java/org/apache/zest/bootstrap/builder/LayerDeclaration.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/zest-java/blob/a6ba8b55/core/bootstrap/src/main/java/org/apache/zest/bootstrap/builder/LayerDeclaration.java
----------------------------------------------------------------------
diff --git a/core/bootstrap/src/main/java/org/apache/zest/bootstrap/builder/LayerDeclaration.java b/core/bootstrap/src/main/java/org/apache/zest/bootstrap/builder/LayerDeclaration.java
index 96e712f..710743e 100644
--- a/core/bootstrap/src/main/java/org/apache/zest/bootstrap/builder/LayerDeclaration.java
+++ b/core/bootstrap/src/main/java/org/apache/zest/bootstrap/builder/LayerDeclaration.java
@@ -29,8 +29,6 @@ import org.apache.zest.bootstrap.AssemblyException;
import org.apache.zest.bootstrap.LayerAssembly;
import org.apache.zest.bootstrap.ModuleAssembly;
-import static java.util.stream.Collectors.toCollection;
-
/**
* Provides declared {@link org.apache.zest.api.structure.Layer} information that the {@link ApplicationBuilder} can use.
*/
@@ -65,7 +63,7 @@ public class LayerDeclaration
public LayerDeclaration using( Iterable<String> layerNames )
{
StreamSupport.stream( layerNames.spliterator(), false )
- .collect( toCollection( () -> using ) );
+ .forEach( using::add );
return this;
}