Mark Latimer created NIFI-586:
---------------------------------

             Summary: Add types to most collections to improve type safety
                 Key: NIFI-586
                 URL: https://issues.apache.org/jira/browse/NIFI-586
             Project: Apache NiFi
          Issue Type: Task
    Affects Versions: 0.0.2
            Reporter: Mark Latimer
            Priority: Minor


The attached patch adds type information in many if not most places where 
collections are created.

For example 
final Set<Relationship> relationships = new HashSet<>(((Processor) 
component).getRelationships());
becomes
final Set<Relationship> relationships = new HashSet<Relationship>(((Processor) 
component).getRelationships());

While likely unnecessary in many places it should help catch some issues 
earlier in the future. 

The patch does touch many files (over 400).



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

Reply via email to