Skip to content

Commit

Permalink
#503 undo misnamed setters
Browse files Browse the repository at this point in the history
  • Loading branch information
ryaneberly committed Dec 28, 2017
1 parent 7eb4240 commit 0fb06c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/java/com/cflint/plugins/core/ValidName.java
Original file line number Diff line number Diff line change
Expand Up @@ -358,15 +358,15 @@ public void setRequiredPrefixList(final String[] prefixes) {
this.requiredPrefixes = prefixes;
}

public void setminLength(int minLength) {
public void setMinLength(int minLength) {
this.minLength = minLength;
}

public void setmaxLength(int maxLength) {
public void setMaxLength(int maxLength) {
this.maxLength = maxLength;
}

public void setmaxWords(int maxWords) {
public void setMaxWords(int maxWords) {
this.maxWords = maxWords;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private void parseParameters(final ValidName name, CFLintConfiguration configura
if (configuration.getParameter(this,"minLength") != null) {
try {
minVarLength = Integer.parseInt(configuration.getParameter(this,"minLength"));
name.setminLength(minVarLength);
name.setMinLength(minVarLength);
} catch (final Exception e) {
throw new ConfigError("Minimum length need to be an integer.");
}
Expand All @@ -151,7 +151,7 @@ private void parseParameters(final ValidName name, CFLintConfiguration configura
if (configuration.getParameter(this,"maxLength") != null) {
try {
maxVarLength = Integer.parseInt(configuration.getParameter(this,"maxLength"));
name.setmaxLength(maxVarLength);
name.setMaxLength(maxVarLength);
} catch (final Exception e) {
throw new ConfigError("Maximum length need to be an integer.");
}
Expand All @@ -160,7 +160,7 @@ private void parseParameters(final ValidName name, CFLintConfiguration configura
if (configuration.getParameter(this,"maxWords") != null) {
try {
maxVarWords = Integer.parseInt(configuration.getParameter(this,"maxWords"));
name.setmaxWords(maxVarWords);
name.setMaxWords(maxVarWords);
} catch (final Exception e) {
throw new ConfigError("Maximum no of words need to be an integer.");
}
Expand Down

0 comments on commit 0fb06c6

Please sign in to comment.