Skip to content

Commit

Permalink
use primitive wrapper as otherwise it is not configuration cached (#54)
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Schmid <service@aaschmid.de>
  • Loading branch information
aaschmid committed Mar 27, 2021
1 parent 8b1d436 commit 19e6628
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/de/aaschmid/gradle/plugins/cpd/Cpd.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public class Cpd extends SourceTask implements VerificationTask, Reporting<CpdRe
private boolean ignoreIdentifiers;
private boolean ignoreLiterals;
private String language;
private int minimumTokenCount;
private Integer minimumTokenCount;
private FileCollection pmdClasspath;
private boolean skipDuplicateFiles;
private boolean skipLexicalErrors;
Expand Down Expand Up @@ -309,11 +309,11 @@ public void setLanguage(String language) {
* @return the minimum token cound
*/
@Input
public int getMinimumTokenCount() {
public Integer getMinimumTokenCount() {
return minimumTokenCount;
}

public void setMinimumTokenCount(int minimumTokenCount) {
public void setMinimumTokenCount(Integer minimumTokenCount) {
this.minimumTokenCount = minimumTokenCount;
}

Expand Down

0 comments on commit 19e6628

Please sign in to comment.