Skip to content

Commit 318a84a

Browse files
committed
RAT-563: Minor refactorings during review
1 parent ee21991 commit 318a84a

8 files changed

Lines changed: 16 additions & 16 deletions

File tree

apache-rat-core/src/main/java/org/apache/rat/OptionCollection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ public static Options buildOptions() {
209209
}
210210

211211
/**
212-
* Creates an IReportable object from the directory name and ReportConfiguration
212+
* Creates a Reportable object from the directory name and ReportConfiguration
213213
* object.
214214
*
215215
* @param base the directory that contains the files to report on.
216216
* @param config the ReportConfiguration.
217-
* @return the IReportable instance containing the files.
217+
* @return the Reportable instance containing the files.
218218
*/
219219
public static Reportable getReportable(final File base, final ReportConfiguration config) {
220220
File absBase = base.getAbsoluteFile();

apache-rat-core/src/main/java/org/apache/rat/ReportConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ public void addIncludedPatterns(final Iterable<String> patterns) {
427427
}
428428

429429
/**
430-
* Get the DocumentNameMatcher that excludes files found in the directory tree..
430+
* Get the DocumentNameMatcher that excludes files found in the directory tree.
431431
* @param baseDir the DocumentName for the base directory.
432432
* @return the DocumentNameMatcher for the base directory.
433433
*/

apache-rat-core/src/main/java/org/apache/rat/config/exclusion/ExclusionProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
/**
3838
* Processes the include and exclude patterns and applies the result against a base directory
39-
* to return an IReportable that contains all the reportable objects.
39+
* to return a Reportable that contains all the reportable objects.
4040
*/
4141
public class ExclusionProcessor {
4242
/** Strings that identify the files/directories to exclude */

apache-rat-core/src/main/java/org/apache/rat/walker/FileListWalker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import org.apache.rat.utils.DefaultLog;
3535

3636
/**
37-
* Implementation of IReportable that traverses over a resource collection
37+
* Implementation of Reportable that traverses over a resource collection
3838
* internally.
3939
*/
4040
public class FileListWalker implements Reportable {

apache-rat-core/src/main/java/org/apache/rat/walker/ReportableListWalker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import org.apache.rat.utils.DefaultLog;
3030

3131
/**
32-
* A Reportable that walks a list of IReportables and executes the run on each.
32+
* A Reportable that walks a list of Reportables and executes the run on each.
3333
*/
3434
public final class ReportableListWalker implements Reportable {
3535
/** The document name for this walker. */
@@ -77,7 +77,7 @@ public DocumentName name() {
7777
public static final class Builder {
7878
/** The document name for the walker. */
7979
private final DocumentName documentName;
80-
/** The list of IReportable objects to execute. */
80+
/** The list of Reportable objects to execute. */
8181
private List<Reportable> reportables = new ArrayList<>();
8282

8383
/**

apache-rat-core/src/main/java/org/apache/rat/walker/Walker.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828
*/
2929
public abstract class Walker implements Reportable {
3030

31-
/** The document this walker is walking */
31+
/** The document this walker is walking. */
3232
private final Document document;
3333

3434
/**
35-
* Creates the walker
35+
* Creates the walker.
3636
* @param document The document the walker is walking.
3737
*/
3838
protected Walker(final Document document) {

apache-rat-tasks/src/main/java/org/apache/rat/anttasks/ResourceCollectionContainer.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@
2929
import org.apache.tools.ant.types.resources.FileResource;
3030

3131
/**
32-
* Implementation of IReportable that traverses over a resource collection
32+
* Implementation of Reportable that traverses over a resource collection
3333
* internally.
3434
*/
3535
class ResourceCollectionContainer implements Reportable {
36-
/** The resources as collected by Ant */
36+
/** The resources as collected by Ant. */
3737
private final ResourceCollection resources;
38-
/** The report configuration being used for the report */
38+
/** The report configuration being used for the report. */
3939
private final ReportConfiguration configuration;
40-
/** The document name */
40+
/** The document name. */
4141
private final DocumentName name;
4242

4343
ResourceCollectionContainer(final DocumentName name, final ReportConfiguration configuration, final ResourceCollection resources) {

src/site/markdown/architecture.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ The `out` parameter specifies an `OutputStream` IOSupplier that is used to creat
8787

8888
The `styleSheet` parameter specifies the `InputStream` IOSupplier that is used to read the stylesheet that styles the XML output.
8989

90-
## IReportable
90+
## Reportable
9191

92-
The `IReportable` parameter identifies the objects that the report should run against.
93-
Implementations of `IReportable` generally do things like walk directory trees, or archives.
92+
The `Reportable` parameter identifies the objects that the report should run against.
93+
Implementations of `Reportable` generally do things like walk directory trees, or archives.
9494

9595
# Reporter
9696

0 commit comments

Comments
 (0)