This is an automated email from the ASF dual-hosted git repository.
mthomsen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 0d9f208 NIFI-7883 replace explicit type with diamond type
0d9f208 is described below
commit 0d9f2087fa8d67725576479226ca17ed534aeebf
Author: Dan Kim <deekim@users.noreply.github.com>
AuthorDate: Sun Oct 4 19:25:30 2020 +0000
NIFI-7883 replace explicit type with diamond type
This closes #4571
Signed-off-by: Mike Thomsen <mthomsen@apache.org>
---
.../src/main/java/MyProcessor.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nifi-maven-archetypes/nifi-processor-bundle-archetype/src/main/resources/archetype-resources/nifi-__artifactBaseName__-processors/src/main/java/MyProcessor.java
b/nifi-maven-archetypes/nifi-processor-bundle-archetype/src/main/resources/archetype-resources/nifi-__artifactBaseName__-processors/src/main/java/MyProcessor.java
index 588561e..14fbbff 100644
--- a/nifi-maven-archetypes/nifi-processor-bundle-archetype/src/main/resources/archetype-resources/nifi-__artifactBaseName__-processors/src/main/java/MyProcessor.java
+++ b/nifi-maven-archetypes/nifi-processor-bundle-archetype/src/main/resources/archetype-resources/nifi-__artifactBaseName__-processors/src/main/java/MyProcessor.java
@@ -66,11 +66,11 @@ public class MyProcessor extends AbstractProcessor {
@Override
protected void init(final ProcessorInitializationContext context) {
- final List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>();
+ final List<PropertyDescriptor> descriptors = new ArrayList<>();
descriptors.add(MY_PROPERTY);
this.descriptors = Collections.unmodifiableList(descriptors);
- final Set<Relationship> relationships = new HashSet<Relationship>();
+ final Set<Relationship> relationships = new HashSet<>();
relationships.add(MY_RELATIONSHIP);
this.relationships = Collections.unmodifiableSet(relationships);
}
|