A RetroSearch Logo

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

Search Query:

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

[java] UnusedImports false positive for static import · Issue #925 · pmd/pmd · GitHub

Affects PMD Version:

6.0.1

Rule:

UnusedImports

Description:

A false positive is generated for the UnusedImports rule on static import of constants.

Code Sample demonstrating the issue:

The file FileFormatType on the project VocabHunter shows this problem. To work around the problem, the following line has been added to ruleset.xml:

<exclude-pattern>.*/*FileFormatType.java</exclude-pattern>

To reproduce the problem, remove the above workaround line and then launch the following:

$ ./gradlew clean :gui:pmdMain

Running PMD through: 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