You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2015/10/09 17:08:26 UTC

[jira] [Created] (REEF-824) Use diamond operator for generic instance creation

Dongjoon Hyun created REEF-824:
----------------------------------

             Summary: Use diamond operator for generic instance creation
                 Key: REEF-824
                 URL: https://issues.apache.org/jira/browse/REEF-824
             Project: REEF
          Issue Type: Task
    Affects Versions: 0.13
            Reporter: Dongjoon Hyun
            Assignee: Dongjoon Hyun
            Priority: Trivial


To make our code more concise and improve readability, this issue is aiming to replace existing codes with old style type inference.

{code}
-    final Map<Class<? extends T>, Encoder<? extends T>> clazzToEncoderMap =
-        new HashMap<Class<? extends T>, Encoder<? extends T>>();
-    final Map<Class<? extends T>, Decoder<? extends T>> clazzToDecoderMap =
-        new HashMap<Class<? extends T>, Decoder<? extends T>>();
+    final Map<Class<? extends T>, Encoder<? extends T>> clazzToEncoderMap = new HashMap<>();
+    final Map<Class<? extends T>, Decoder<? extends T>> clazzToDecoderMap = new HashMap<>();
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)