polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject [2/4] polygene-java git commit: Refine: diamond operator
Date Mon, 15 May 2017 07:04:05 GMT
Refine: diamond operator

Signed-off-by: niclas <niclas@hedhman.org>


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

Branch: refs/heads/develop
Commit: f7376c1aa33ecb579397584c320b254ef4a5f88b
Parents: 90a496c
Author: niclas <niclas@hedhman.org>
Authored: Mon May 15 14:58:07 2017 +0800
Committer: niclas <niclas@hedhman.org>
Committed: Mon May 15 14:58:07 2017 +0800

----------------------------------------------------------------------
 .../apache/polygene/runtime/composite/MixinsModel.java  | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/f7376c1a/core/runtime/src/main/java/org/apache/polygene/runtime/composite/MixinsModel.java
----------------------------------------------------------------------
diff --git a/core/runtime/src/main/java/org/apache/polygene/runtime/composite/MixinsModel.java
b/core/runtime/src/main/java/org/apache/polygene/runtime/composite/MixinsModel.java
index 2f6e333..bd5e708 100644
--- a/core/runtime/src/main/java/org/apache/polygene/runtime/composite/MixinsModel.java
+++ b/core/runtime/src/main/java/org/apache/polygene/runtime/composite/MixinsModel.java
@@ -51,12 +51,12 @@ import static org.apache.polygene.api.util.Classes.interfacesOf;
 public class MixinsModel
     implements Binder, VisitableHierarchy<Object, Object>, Dependencies
 {
-    protected final Map<Method, MixinModel> methodImplementation = new HashMap<Method,
MixinModel>();
-    protected final Map<Method, Integer> methodIndex = new HashMap<Method, Integer>();
-    protected List<MixinModel> mixinModels = new ArrayList<MixinModel>();
+    protected final Map<Method, MixinModel> methodImplementation = new HashMap<>();
+    protected final Map<Method, Integer> methodIndex = new HashMap<>();
+    protected List<MixinModel> mixinModels = new ArrayList<>();
 
-    private final Map<Class, Integer> mixinIndex = new HashMap<Class, Integer>();
-    private final Set<Class<?>> mixinTypes = new LinkedHashSet<Class<?>>();
+    private final Map<Class, Integer> mixinIndex = new HashMap<>();
+    private final Set<Class<?>> mixinTypes = new LinkedHashSet<>();
 
     public Stream<Class<?>> mixinTypes()
     {
@@ -127,7 +127,7 @@ public class MixinsModel
         throws BindingException
     {
         // Order mixins based on @This usages
-        UsageGraph<MixinModel> deps = new UsageGraph<MixinModel>( mixinModels,
new Uses(), true );
+        UsageGraph<MixinModel> deps = new UsageGraph<>( mixinModels, new Uses(),
true );
         mixinModels = deps.resolveOrder();
 
         // Populate mappings


Mime
View raw message