xuanzhang gong created KAFKA-17761:
--------------------------------------

             Summary: Omit generics using type inference
                 Key: KAFKA-17761
                 URL: https://issues.apache.org/jira/browse/KAFKA-17761
             Project: Kafka
          Issue Type: Sub-task
            Reporter: xuanzhang gong


If the compiler can do type inference, generics should not be written in 
diamond blocks.

For example: 

List<String> list = new ArrayList<String>();

we should remove "String".

Correct writing is : 

List<String> list = new ArrayList<>();



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to