From fc1d06d8226763e6c702865affc879b8a43afb80 Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Mon, 15 Nov 2010 20:48:19 +0100 Subject: Cleanup. --- .../src/main/java/org/semver/enforcer/CheckVersionRule.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'enforcer-rule/src') 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 extractFilters(final String[] filtersAsStringArray) { + private Set 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"); } -- cgit v1.2.3