Pass empty collections instead of null when calling write(ConfigurableComponent component)
This closes
*/
package org.apache.nifi.documentation;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
import org.apache.nifi.annotation.behavior.DynamicProperties;
import org.apache.nifi.annotation.behavior.DynamicProperty;
import org.apache.nifi.annotation.behavior.DynamicRelationship;
@@ -50,6 +42,15 @@ import org.apache.nifi.processor.Relationship;
import org.apache.nifi.reporting.InitializationException;
import org.apache.nifi.reporting.ReportingTask;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
/**
* Base class for DocumentationWriter that simplifies iterating over all information for a component, creating a separate method
* for each, to ensure that implementations properly override all methods and therefore properly account for all information about
@@ -95,7 +96,7 @@ public abstract class AbstractDocumentationWriter implements ExtensionDocumentat
@Override
public final void write(final ConfigurableComponent component) throws IOException {
- write(component, null, null);
+ write(component, Collections.emptyList(), Collections.emptyMap());
}
@Override
