A RetroSearch Logo

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

Search Query:

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

[java] LocalVariableCouldBeFinal false-positive with lombok.val · Issue #5079 · pmd/pmd · GitHub

Rule:LocalVariableCouldBeFinal

Please provide the rule name and a link to the rule documentation:
https://pmd.github.io/pmd/pmd_rules_java_codestyle.html#methodargumentcouldbefinal

Description: lombok.val is equivalet to final class

Code Sample demonstrating the issue:

import lombok.val;

val test04 = logicTestService.test();
// This is equivalent to:
// final String test04 = logicTestService.test();

Error:

LocalVariableCouldBeFinal: Local variable 'test04' could be declared final


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