aboutsummaryrefslogtreecommitdiffstats
path: root/enforcer-rule/src
diff options
context:
space:
mode:
authorJulien Eluard <[email protected]>2010-11-15 20:48:19 +0100
committerJulien Eluard <[email protected]>2010-11-15 20:48:19 +0100
commitfc1d06d8226763e6c702865affc879b8a43afb80 (patch)
treebfdc7e446fa99622ac0f9c4b1480097cc22aca5f /enforcer-rule/src
parent2e5f3cb8085ed0d1707fa820b4c308c4936c37a2 (diff)
Cleanup.
Diffstat (limited to 'enforcer-rule/src')
-rw-r--r--enforcer-rule/src/main/java/org/semver/enforcer/CheckVersionRule.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/enforcer-rule/src/main/java/org/semver/enforcer/CheckVersionRule.java b/enforcer-rule/src/main/java/org/semver/enforcer/CheckVersionRule.java
index dab4ec3..77409e4 100644
--- a/enforcer-rule/src/main/java/org/semver/enforcer/CheckVersionRule.java
+++ b/enforcer-rule/src/main/java/org/semver/enforcer/CheckVersionRule.java
@@ -42,30 +42,30 @@ import org.semver.Version;
* Fails if {@link Version} semantic is not respected.
*
*/
-public class CheckVersionRule implements EnforcerRule {
+public final class CheckVersionRule implements EnforcerRule {
/**
* Version number of artifact to be checked.
*
* @parameter
*/
- protected String previousVersion;
+ private String previousVersion;
/**
* Class names to be included.
*
* @parameter
*/
- protected String[] includes;
+ private String[] includes;
/**
* Class names to be excluded.
*
* @parameter
*/
- protected String[] excludes;
+ private String[] excludes;
- protected final Set<String> extractFilters(final String[] filtersAsStringArray) {
+ private Set<String> extractFilters(final String[] filtersAsStringArray) {
if (filtersAsStringArray == null) {
return Collections.emptySet();
}
@@ -104,7 +104,7 @@ public class CheckVersionRule implements EnforcerRule {
* Validates that specified {@link Artifact} is a JAR file.
* @param artifact
*/
- protected final void validateArtifact(final Artifact artifact) {
+ private void validateArtifact(final Artifact artifact) {
if (!artifact.getFile().isFile()) {
throw new IllegalArgumentException("<"+artifact.getFile()+"> is not a file");
}