Skip to content

Commit 5925217

Browse files
committed
Make some classes final
1 parent 15c35f9 commit 5925217

File tree

9 files changed

+12
-11
lines changed

9 files changed

+12
-11
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<release version="1.9.2" date="YYYY-MM-DD" description="This is a feature and maintenance release. Java 8 or later is required.">
2828
<!-- FIX -->
2929
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix Apache RAT plugin console warnings.</action>
30+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Make some classes final.</action>
3031
<!-- ADD -->
3132
<!-- UPDATE -->
3233
<action type="update" dev="ggregory" due-to="Gary Gregory">Bump org.apache.commons:commons-parent from 85 to 93 #396, #399, #419, #420.</action>

src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionDetachmentMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
defaultPhase = LifecyclePhase.VERIFY,
5353
threadSafe = true,
5454
aggregator = true)
55-
public class CommonsDistributionDetachmentMojo extends AbstractMojo {
55+
public final class CommonsDistributionDetachmentMojo extends AbstractMojo {
5656

5757
/**
5858
* A list of "artifact types" in the Maven vernacular, to

src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
defaultPhase = LifecyclePhase.DEPLOY,
7070
threadSafe = true,
7171
aggregator = true)
72-
public class CommonsDistributionStagingMojo extends AbstractMojo {
72+
public final class CommonsDistributionStagingMojo extends AbstractMojo {
7373

7474
/** The name of file generated from the README.vm velocity template to be checked into the dist svn repo. */
7575
private static final String README_FILE_NAME = "README.html";

src/main/java/org/apache/commons/release/plugin/mojos/CommonsSiteCompressionMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
defaultPhase = LifecyclePhase.POST_SITE,
4949
threadSafe = true,
5050
aggregator = true)
51-
public class CommonsSiteCompressionMojo extends AbstractMojo {
51+
public final class CommonsSiteCompressionMojo extends AbstractMojo {
5252

5353
/**
5454
* The working directory for the plugin which, assuming the maven uses the default

src/main/java/org/apache/commons/release/plugin/mojos/CommonsStagingCleanupMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
defaultPhase = LifecyclePhase.POST_CLEAN,
5555
threadSafe = true,
5656
aggregator = true)
57-
public class CommonsStagingCleanupMojo extends AbstractMojo {
57+
public final class CommonsStagingCleanupMojo extends AbstractMojo {
5858

5959
/**
6060
* The {@link MavenProject} object is essentially the context of the maven build at

src/main/java/org/apache/commons/release/plugin/velocity/HeaderHtmlVelocityDelegate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
*
3131
* @since 1.3
3232
*/
33-
public class HeaderHtmlVelocityDelegate {
33+
public final class HeaderHtmlVelocityDelegate {
3434

3535
/**
3636
* A builder class for instantiation of the {@link HeaderHtmlVelocityDelegate}.
3737
*/
38-
public static class HeaderHtmlVelocityDelegateBuilder {
38+
public static final class HeaderHtmlVelocityDelegateBuilder {
3939

4040
/**
4141
* Private constructor so that we can have a proper builder pattern.

src/main/java/org/apache/commons/release/plugin/velocity/ReadmeHtmlVelocityDelegate.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
*
3232
* @since 1.3
3333
*/
34-
public class ReadmeHtmlVelocityDelegate {
34+
public final class ReadmeHtmlVelocityDelegate {
3535
/**
3636
* A builder class for instantiation of the {@link ReadmeHtmlVelocityDelegate}.
3737
*/
38-
public static class ReadmeHtmlVelocityDelegateBuilder {
38+
public static final class ReadmeHtmlVelocityDelegateBuilder {
3939
/** The maven artifactId to use in the <code>README.vm</code> template. */
4040
private String artifactId;
4141
/** The maven version to use in the <code>README.vm</code> template. */

src/test/java/org/apache/commons/release/plugin/stubs/DistributionDetachmentProjectStub.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
*
3737
* @since 1.0
3838
*/
39-
public class DistributionDetachmentProjectStub extends MavenProjectStub {
39+
public final class DistributionDetachmentProjectStub extends MavenProjectStub {
4040

41-
public static class DistributionDetachmentArtifactStub extends ArtifactStub {
41+
public static final class DistributionDetachmentArtifactStub extends ArtifactStub {
4242

4343
private final File artifact;
4444

src/test/java/org/apache/commons/release/plugin/velocity/ReadmeHtmlVelocityDelegateTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* Unit tests for {@link ReadmeHtmlVelocityDelegate}.
2929
*/
30-
public class ReadmeHtmlVelocityDelegateTest {
30+
public final class ReadmeHtmlVelocityDelegateTest {
3131

3232
@Test
3333
public void testSuccessfulRun() throws IOException {

0 commit comments

Comments
 (0)