replace explicit type with diamond type
This closes
@@ -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);
}
