Refine: diamond operator Signed-off-by: niclas <[email protected]>
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 <[email protected]> Authored: Mon May 15 14:58:07 2017 +0800 Committer: niclas <[email protected]> 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
