A RetroSearch Logo

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

Search Query:

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

[java] UseUtilityClass false positive when extending · Issue #824 · pmd/pmd · GitHub

Affects PMD Version: 6.0.0

Rule: UseUtilityClass

Description: GenericTransitionOptions has static factory methods to create instances with the right generic type + potentially already including the transition the user needs. All the instance methods are on the superclass, but GenericTransitionOptions is strongly typed. Does this fall into UseUtilityClass false positive? Notice that the return value of the methods is GenericTransitionOptions andTransitionOptions have instance methods that also return GenericTransitionOptions (=CHILD).

Code Sample demonstrating the issue:
GenericTransitionOptions extends TransitionOptions

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