Skip to content

Commit

Permalink
Removing final from attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Dec 24, 2017
1 parent 010a3f9 commit 4d30b3e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Changelog of Violations Maven plugin.
## Unreleased
### No issue

**Initial**
**Doc**


[fc250914fecc042](https://github.com/tomasbjerre/violations-maven-plugin/commit/fc250914fecc042) Tomas Bjerre *2017-12-24 16:02:07*
[010a3f936a03a3e](https://github.com/tomasbjerre/violations-maven-plugin/commit/010a3f936a03a3e) Tomas Bjerre *2017-12-24 16:09:01*


Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package se.bjurr.violations.maven.plugin;

import static org.apache.maven.plugins.annotations.LifecyclePhase.NONE;
import static org.apache.maven.plugins.annotations.LifecyclePhase.PACKAGE;
import static se.bjurr.violations.lib.ViolationsApi.violationsApi;
import static se.bjurr.violations.lib.ViolationsReporterApi.violationsReporterApi;
import static se.bjurr.violations.lib.ViolationsReporterDetailLevel.VERBOSE;
import static se.bjurr.violations.lib.model.SEVERITY.INFO;

import java.util.ArrayList;
import java.util.List;
Expand All @@ -19,20 +17,20 @@
import se.bjurr.violations.lib.model.Violation;
import se.bjurr.violations.lib.util.Filtering;

@Mojo(name = "violations", defaultPhase = NONE)
@Mojo(name = "violations", defaultPhase = PACKAGE)
public class ViolationCommentsMojo extends AbstractMojo {

@Parameter(property = "violations", required = false)
private final List<ViolationConfig> violations = new ArrayList<ViolationConfig>();
@Parameter(property = "violations", required = true)
private List<ViolationConfig> violations;

@Parameter(property = "minSeverity", required = false)
private final SEVERITY minSeverity = INFO;
@Parameter(property = "minSeverity", required = false, defaultValue="INFO")
private SEVERITY minSeverity;

@Parameter(property = "detailLevel", required = false)
private final ViolationsReporterDetailLevel detailLevel = VERBOSE;
@Parameter(property = "detailLevel", required = false, defaultValue="VERBOSE")
private ViolationsReporterDetailLevel detailLevel;

@Parameter(property = "maxViolations", required = false)
private final Integer maxViolations = Integer.MAX_VALUE;
@Parameter(property = "maxViolations", required = false, defaultValue="999999")
private Integer maxViolations;

@Override
public void execute() throws MojoExecutionException {
Expand Down

0 comments on commit 4d30b3e

Please sign in to comment.