Skip to content

Commit cf359a7

Browse files
committed
wip
1 parent 5791754 commit cf359a7

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

src/main/java/org/apache/maven/plugins/checkstyle/AbstractCheckstyleReport.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*/
1919
package org.apache.maven.plugins.checkstyle;
2020

21+
import javax.inject.Named;
22+
2123
import java.io.ByteArrayOutputStream;
2224
import java.io.File;
2325
import java.io.FileNotFoundException;
@@ -452,7 +454,8 @@ public abstract class AbstractCheckstyleReport extends AbstractMavenReport {
452454

453455
protected ByteArrayOutputStream stringOutputStream;
454456

455-
public AbstractCheckstyleReport(ResourceManager locator, CheckstyleExecutor checkstyleExecutor, I18N i18n) {
457+
public AbstractCheckstyleReport(
458+
ResourceManager locator, @Named("default") CheckstyleExecutor checkstyleExecutor, I18N i18n) {
456459
this.locator = locator;
457460
this.checkstyleExecutor = checkstyleExecutor;
458461
this.i18n = i18n;

src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleAggregateReport.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
package org.apache.maven.plugins.checkstyle;
2020

2121
import javax.inject.Inject;
22+
import javax.inject.Named;
2223

2324
import org.apache.maven.plugins.annotations.Mojo;
2425
import org.apache.maven.plugins.annotations.ResolutionScope;
@@ -32,8 +33,6 @@
3233
* A reporting task that performs Checkstyle analysis and generates an aggregate
3334
* HTML report on the violations that Checkstyle finds in a multi-module reactor
3435
* build.
35-
*
36-
*
3736
*/
3837
@Mojo(
3938
name = "checkstyle-aggregate",
@@ -43,7 +42,8 @@
4342
public class CheckstyleAggregateReport extends AbstractCheckstyleReport {
4443

4544
@Inject
46-
public CheckstyleAggregateReport(ResourceManager locator, CheckstyleExecutor checkstyleExecutor, I18N i18n) {
45+
public CheckstyleAggregateReport(
46+
ResourceManager locator, @Named("default") CheckstyleExecutor checkstyleExecutor, I18N i18n) {
4747
super(locator, checkstyleExecutor, i18n);
4848
}
4949

src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleReport.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
package org.apache.maven.plugins.checkstyle;
2020

2121
import javax.inject.Inject;
22+
import javax.inject.Named;
2223

2324
import java.io.File;
2425
import java.util.List;
@@ -45,7 +46,8 @@
4546
public class CheckstyleReport extends AbstractCheckstyleReport {
4647

4748
@Inject
48-
public CheckstyleReport(ResourceManager locator, CheckstyleExecutor checkstyleExecutor, I18N i18n) {
49+
public CheckstyleReport(
50+
ResourceManager locator, @Named("default") CheckstyleExecutor checkstyleExecutor, I18N i18n) {
4951
super(locator, checkstyleExecutor, i18n);
5052
}
5153

src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleViolationCheckMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ public class CheckstyleViolationCheckMojo extends AbstractMojo {
488488
/**
489489
* @since 2.5
490490
*/
491-
protected CheckstyleExecutor checkstyleExecutor;
491+
protected final CheckstyleExecutor checkstyleExecutor;
492492

493493
@Inject
494494
public CheckstyleViolationCheckMojo(final @Named("default") CheckstyleExecutor checkstyleExecutor) {

src/main/java/org/apache/maven/plugins/checkstyle/resource/LicenseResourceManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public class LicenseResourceManager extends DefaultResourceManager {
4646
@Inject
4747
public LicenseResourceManager(Map<String, ResourceLoader> resourceLoaders) {
4848
super(resourceLoaders);
49+
this.resourceLoaders = resourceLoaders;
4950
}
5051

5152
@Override

0 commit comments

Comments
 (0)