Fix [SonarQube] Public methods should throw at most one checked
exception (Refactor this method to throw at most one checked exception)
Update javadoc
Refactor parameter name for descriptiveness
Update javadoc
Fix [SonarQube] Public methods should throw at most one checked
exception (Refactor this method to throw at most one checked exception)
Extract message strings to static field strings
Extract message string to static field string
Extract regex strings to static field strings.
Extract code blocks to protected methods to reduce method complexity
Fix [SonarQube] Generic exceptions Error, RuntimeException, Throwable
and Exception should never be thrown (Define and throw a dedicated
exception instead of using a generic one)
Fix [SonarQube] Security - Array is stored directly (Constructors and
methods receiving arrays should clone objects and store the copy. This
prevents that future changes from the user affect the internal
functionality)
Change scope to private on #constructTemplateRegex and
#constructCategoryRegex for security reasons.