Skip to content

Commit b445290

Browse files
committed
Fix checkstyle warnings, add suppressions for not possible changes due to bc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1439967 13f79535-47bb-0310-9956-ffa450edef68
1 parent 75ce7d3 commit b445290

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/conf/checkstyle-suppressions.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
<suppressions>
55

66
<!-- Suppress visibility check of some member fields as they have to be kept
7-
for backwards compatibility reasons -->
7+
for binary compatibility reasons -->
88
<suppress checks="VisibilityModifier" files="HelpFormatter.java" />
99

10+
<!-- Cannot hide public constructor due to binary compatibility reasons -->
11+
<suppress checks="HideUtilityClassConstructor" files="PatternOptionBuilder.java" />
12+
<suppress checks="HideUtilityClassConstructor" files="TypeHandler.java" />
13+
1014
</suppressions>

src/conf/checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ limitations under the License.
9898
</module>
9999
<module name="MethodLength"/>
100100
<module name="ParameterNumber">
101-
<property name="max" value="8"/>
101+
<property name="max" value="9"/>
102102
</module>
103103

104104

src/main/java/org/apache/commons/cli/OptionValidator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* @version $Revision$, $Date$
2525
* @since 1.1
2626
*/
27-
class OptionValidator
27+
final class OptionValidator
2828
{
2929
/**
3030
* Hide constructor for a utility class.

src/main/java/org/apache/commons/cli/Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* @author John Keyes (john at integralsource.com)
2424
* @version $Revision$, $Date$
2525
*/
26-
class Util
26+
final class Util
2727
{
2828
/**
2929
* Hide constructor for a utility class.

0 commit comments

Comments
 (0)