Skip to content

Commit

Permalink
NIFI-8624 Updated Maven archetypes to conform to SonarQube standards
Browse files Browse the repository at this point in the history
This closes apache#5092

Signed-off-by: David Handermann <exceptionfactory@apache.org>
  • Loading branch information
Lockie Richter authored and timeabarna committed Jul 6, 2021
1 parent 297baf5 commit b8b662e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Expand Up @@ -66,13 +66,13 @@ public class MyProcessor extends AbstractProcessor {

@Override
protected void init(final ProcessorInitializationContext context) {
final List<PropertyDescriptor> descriptors = new ArrayList<>();
descriptors = new ArrayList<>();
descriptors.add(MY_PROPERTY);
this.descriptors = Collections.unmodifiableList(descriptors);
descriptors = Collections.unmodifiableList(descriptors);

final Set<Relationship> relationships = new HashSet<>();
relationships = new HashSet<>();
relationships.add(MY_RELATIONSHIP);
this.relationships = Collections.unmodifiableSet(relationships);
relationships = Collections.unmodifiableSet(relationships);
}

@Override
Expand All @@ -91,7 +91,7 @@ public void onScheduled(final ProcessContext context) {
}

@Override
public void onTrigger(final ProcessContext context, final ProcessSession session) throws ProcessException {
public void onTrigger(final ProcessContext context, final ProcessSession session) {
FlowFile flowFile = session.get();
if ( flowFile == null ) {
return;
Expand Down
Expand Up @@ -25,6 +25,6 @@
@CapabilityDescription("Example Service API.")
public interface MyService extends ControllerService {

public void execute() throws ProcessException;
public void execute();

}
Expand Up @@ -73,7 +73,7 @@ public void shutdown() {
}

@Override
public void execute() throws ProcessException {
public void execute() {

}

Expand Down

0 comments on commit b8b662e

Please sign in to comment.