From 0fb06c6c90594de5ee890c8473b3a3a13a4bf072 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 27 Dec 2017 22:44:12 -0500 Subject: [PATCH] #503 undo misnamed setters --- src/main/java/com/cflint/plugins/core/ValidName.java | 6 +++--- .../java/com/cflint/plugins/core/VariableNameChecker.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/cflint/plugins/core/ValidName.java b/src/main/java/com/cflint/plugins/core/ValidName.java index 465301f40..3b30b00f5 100644 --- a/src/main/java/com/cflint/plugins/core/ValidName.java +++ b/src/main/java/com/cflint/plugins/core/ValidName.java @@ -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; } } diff --git a/src/main/java/com/cflint/plugins/core/VariableNameChecker.java b/src/main/java/com/cflint/plugins/core/VariableNameChecker.java index b0781957e..a483ca640 100644 --- a/src/main/java/com/cflint/plugins/core/VariableNameChecker.java +++ b/src/main/java/com/cflint/plugins/core/VariableNameChecker.java @@ -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."); } @@ -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."); } @@ -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."); }