A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1612 below:

[java] Deprecate AvoidFinalLocalVariable · Issue #1612 · pmd/pmd · GitHub

Affects PMD Version:

4.1+

Rule:

AvoidFinalLocalVariable

Description:

This rule is suspect in general, but it really encourages bad code in unit tests. It is okay, even recommended, to use final local variables. Not everything needs to be the public class Animal we were taught in school. As a workaround, I am disabling this rule in my rulesets.xml:

<rule ref="category/java/codestyle.xml">
    <exclude name="AvoidFinalLocalVariable" />
</rule>

Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]

Gradle


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4