Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
elharo committed Nov 21, 2024
1 parent cf359a7 commit c22759d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ public abstract class AbstractCheckstyleReport extends AbstractMavenReport {
/**
* @since 2.5
*/
protected CheckstyleExecutor checkstyleExecutor;
protected final CheckstyleExecutor checkstyleExecutor;

/**
* Internationalization component
Expand All @@ -455,7 +455,9 @@ public abstract class AbstractCheckstyleReport extends AbstractMavenReport {
protected ByteArrayOutputStream stringOutputStream;

public AbstractCheckstyleReport(
ResourceManager locator, @Named("default") CheckstyleExecutor checkstyleExecutor, I18N i18n) {
final ResourceManager locator,
final @Named("default") CheckstyleExecutor checkstyleExecutor,
final I18N i18n) {
this.locator = locator;
this.checkstyleExecutor = checkstyleExecutor;
this.i18n = i18n;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ public class CheckstyleReport extends AbstractCheckstyleReport {

@Inject
public CheckstyleReport(
ResourceManager locator, @Named("default") CheckstyleExecutor checkstyleExecutor, I18N i18n) {
final ResourceManager locator,
final @Named("default") CheckstyleExecutor checkstyleExecutor,
final I18N i18n) {
super(locator, checkstyleExecutor, i18n);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
* @author Olivier Lamy
* @since 2.5
*/
@Named
@Named("default")
public class DefaultCheckstyleExecutor extends AbstractLogEnabled implements CheckstyleExecutor {
private final ResourceManager locator;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class LicenseResourceManager extends DefaultResourceManager {

private static final Logger LOGGER = LoggerFactory.getLogger(LicenseResourceManager.class);

private Map<String, ResourceLoader> resourceLoaders;
private final Map<String, ResourceLoader> resourceLoaders;

@Inject
public LicenseResourceManager(Map<String, ResourceLoader> resourceLoaders) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
public class CheckstyleReportTest extends AbstractCheckstyleTestCase {
public void testNoSource() throws Exception {
File generatedReport = generateReport(getGoal(), "no-source-plugin-config.xml");
assertFalse(FileUtils.fileExists(generatedReport.getAbsolutePath()));
String absolutePath = generatedReport.getAbsolutePath();
assertFalse(absolutePath + " exists", FileUtils.fileExists(absolutePath));
}

public void testMinConfiguration() throws Exception {
Expand Down

0 comments on commit c22759d

Please sign in to comment.