diff --git a/contrib/examples/checks/all-checkstyle-checks.xml b/contrib/examples/checks/all-checkstyle-checks.xml index 40da4723d..dad43e48c 100644 --- a/contrib/examples/checks/all-checkstyle-checks.xml +++ b/contrib/examples/checks/all-checkstyle-checks.xml @@ -498,16 +498,6 @@ - - - - - - - - - - diff --git a/contrib/examples/conf/template_config.xml b/contrib/examples/conf/template_config.xml index 107e5bccc..7733aa1a2 100644 --- a/contrib/examples/conf/template_config.xml +++ b/contrib/examples/conf/template_config.xml @@ -465,14 +465,6 @@ - - - - - - - diff --git a/src/main/resources/sun_checks.xml b/src/main/resources/sun_checks.xml index 709f3ec27..267bd4b0f 100644 --- a/src/main/resources/sun_checks.xml +++ b/src/main/resources/sun_checks.xml @@ -152,7 +152,6 @@ - diff --git a/src/xdocs/availablechecks.xml b/src/xdocs/availablechecks.xml index 0ae2af714..30282a164 100644 --- a/src/xdocs/availablechecks.xml +++ b/src/xdocs/availablechecks.xml @@ -586,12 +586,6 @@ RedundantModifier Checks for redundant modifiers in interface and annotation definitions. - - RedundantThrows - Checks for redundant exceptions declared in throws clause - such as duplicates, unchecked exceptions or subclasses of - another declared exception. - Regexp diff --git a/src/xdocs/config_coding.xml b/src/xdocs/config_coding.xml index cb11f2104..89480601f 100644 --- a/src/xdocs/config_coding.xml +++ b/src/xdocs/config_coding.xml @@ -975,105 +975,6 @@ for (int i = 0; i < 1; i++) { -
- -

- Checks for redundant exceptions declared in a throws clause such as - duplicates, unchecked exceptions or subclasses of another declared - exception. -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
namedescriptiontypedefault value
allowUncheckedwhether unchecked exceptions in throws are allowed or notbooleanfalse
allowSubclasses whether subclasses of another declared exception - are allowed in throws clause booleanfalse
logLoadErrorsThis check may need to load exception classes mentioned in - the @throws tag to check whether they are RuntimeExceptions. - If loading the class fails, this property allows controlling - Checkstyle's error handling. If set to false a - classpath configuration problem is assumed and the TreeWalker - stops operating on the class completely. - If set to true (the default), Checkstyle assumes a - typo or refactoring problem in the - javadoc and logs the problem in the normal Checkstyle report - (potentially masking a configuration error).booleantrue
suppressLoadErrorsWhen logLoadErrors is set to true, the TreeWalker completely - processes a class and displays any problems with loading exceptions - as Checkstyle violations. - When this property is set to true, the violations generated when - logLoadErrors is true are suppressed from being reported as - violations in the Checkstyle report. - booleanfalse
-
- - -

- To configure the default check: -

- -<module name="RedundantThrows"/> - - -

- To configure the check to allow unchecked exception in throws clause -

- -<module name="RedundantThrows"> - <property name="allowUnchecked" value="true"/> -</module> - -
- - -

- The classpath should be configured to locate the class - information. The classpath configuration is dependent on the - mechanism used to invoke Checkstyle. -

-
- - -

- com.puppycrawl.tools.checkstyle.checks.coding -

-
- - -

- TreeWalker -

-
-
-