diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/CheckStyleTask.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/CheckStyleTask.java index 21ddcccc4..eed7c5ea3 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/CheckStyleTask.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/CheckStyleTask.java @@ -114,6 +114,18 @@ public class CheckStyleTask mConfig.setMaxLineLength(aLen); } + /** @param aLen max allowed method length **/ + public void setMaxMethodLen(int aLen) + { + mConfig.setMaxMethodLength(aLen); + } + + /** @param aLen max allowed constructor length **/ + public void setMaxConstructorLen(int aLen) + { + mConfig.setMaxConstructorLength(aLen); + } + /** @param aIgnore whether max line length should be ignored for * import statements */