diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/metrics/MethodCountCheck.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/metrics/MethodCountCheck.java
index 3b3c1a661..dc1ba1bc5 100644
--- a/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/metrics/MethodCountCheck.java
+++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/metrics/MethodCountCheck.java
@@ -51,11 +51,12 @@ public final class MethodCountCheck extends Check
/**
* Creates an interface.
- * @param inInterface indicated if counter for an interface. In which
+ * @param aInInterface indicated if counter for an interface. In which
* case, add all counts as public methods.
*/
- MethodCounter(boolean inInterface) {
- mInInterface = inInterface;
+ MethodCounter(boolean aInInterface)
+ {
+ mInInterface = aInInterface;
}
/**
@@ -84,7 +85,8 @@ public final class MethodCountCheck extends Check
}
/** @return the total number of methods. */
- int getTotal() {
+ int getTotal()
+ {
return mTotal;
}
};
@@ -182,28 +184,48 @@ public final class MethodCountCheck extends Check
}
}
- public void setMaxPrivate(int maxPrivate)
+ /**
+ * Sets the maximum allowed private methods per type.
+ * @param aValue the maximum allowed.
+ */
+ public void setMaxPrivate(int aValue)
{
- mMaxPrivate = maxPrivate;
+ mMaxPrivate = aValue;
}
- public void setMaxPackage(int maxPackage)
+ /**
+ * Sets the maximum allowed package methods per type.
+ * @param aValue the maximum allowed.
+ */
+ public void setMaxPackage(int aValue)
{
- mMaxPackage = maxPackage;
+ mMaxPackage = aValue;
}
- public void setMaxProtected(int maxProtected)
+ /**
+ * Sets the maximum allowed protected methods per type.
+ * @param aValue the maximum allowed.
+ */
+ public void setMaxProtected(int aValue)
{
- mMaxProtected = maxProtected;
+ mMaxProtected = aValue;
}
- public void setMaxPublic(int maxPublic)
+ /**
+ * Sets the maximum allowed public methods per type.
+ * @param aValue the maximum allowed.
+ */
+ public void setMaxPublic(int aValue)
{
- mMaxPublic = maxPublic;
+ mMaxPublic = aValue;
}
- public void setMaxTotal(int maxTotal)
+ /**
+ * Sets the maximum total methods per type.
+ * @param aValue the maximum allowed.
+ */
+ public void setMaxTotal(int aValue)
{
- mMaxTotal = maxTotal;
+ mMaxTotal = aValue;
}
}