polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject [1/2] polygene-java git commit: :core:runtime minor edits
Date Sun, 23 Apr 2017 13:01:11 GMT
Repository: polygene-java
Updated Branches:
  refs/heads/develop 609676792 -> 3d33ead72


:core:runtime minor edits

remove unused import
remove System.out.println
favor lambda over anonymous class


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/e6611087
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/e6611087
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/e6611087

Branch: refs/heads/develop
Commit: e6611087edf6a27555efd3ded8065dcfcc71c392
Parents: 6096767
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Sun Apr 23 14:36:44 2017 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Sun Apr 23 14:37:31 2017 +0200

----------------------------------------------------------------------
 .../runtime/bootstrap/CompositeAssemblyImpl.java         | 11 +----------
 .../polygene/runtime/type/ValueTypeFactoryInstance.java  |  1 -
 2 files changed, 1 insertion(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/e6611087/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/CompositeAssemblyImpl.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/CompositeAssemblyImpl.java
b/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/CompositeAssemblyImpl.java
index 5e9b5fc..54c597b 100644
--- a/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/CompositeAssemblyImpl.java
+++ b/core/runtime/src/main/java/org/apache/polygene/runtime/bootstrap/CompositeAssemblyImpl.java
@@ -35,7 +35,6 @@ import java.util.HashSet;
 import java.util.List;
 import java.util.Set;
 import java.util.function.Consumer;
-import java.util.function.Function;
 import java.util.function.Predicate;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
@@ -270,7 +269,6 @@ public abstract class CompositeAssemblyImpl
                                }
                                catch( Exception e )
                                {
-                                   System.out.println( "NICLAS 2: " + e.getClass() + " -
" + e.getMessage() );
                                    exceptions.add( e );
                                }
                            }
@@ -806,14 +804,7 @@ public abstract class CompositeAssemblyImpl
     {
         return types
             .filter( mixinType -> Annotations.annotationOn( mixinType, Concerns.class
) != null )
-            .flatMap( new Function<Type, Stream<? extends Class<?>>>()
-            {
-                @Override
-                public Stream<? extends Class<?>> apply( Type mixinType )
-                {
-                    return Arrays.stream( Annotations.annotationOn( mixinType, Concerns.class
).value() );
-                }
-            } );
+            .flatMap( mixinType -> Arrays.stream( Annotations.annotationOn( mixinType,
Concerns.class ).value() ) );
     }
 
     @SuppressWarnings( "unchecked" )

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/e6611087/core/runtime/src/main/java/org/apache/polygene/runtime/type/ValueTypeFactoryInstance.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/polygene/runtime/type/ValueTypeFactoryInstance.java
b/core/runtime/src/main/java/org/apache/polygene/runtime/type/ValueTypeFactoryInstance.java
index b9b8e47..77273c4 100644
--- a/core/runtime/src/main/java/org/apache/polygene/runtime/type/ValueTypeFactoryInstance.java
+++ b/core/runtime/src/main/java/org/apache/polygene/runtime/type/ValueTypeFactoryInstance.java
@@ -24,7 +24,6 @@ import java.lang.reflect.ParameterizedType;
 import java.lang.reflect.Type;
 import java.lang.reflect.TypeVariable;
 import org.apache.polygene.api.common.InvalidApplicationException;
-import org.apache.polygene.api.composite.AmbiguousTypeException;
 import org.apache.polygene.api.entity.EntityComposite;
 import org.apache.polygene.api.entity.EntityDescriptor;
 import org.apache.polygene.api.structure.ModuleDescriptor;


Mime
View raw message