Skip to content

[java] [7.0-rc1] UnnecessaryImport - Unused static import is being used #4432

@ben-manes

Description

@ben-manes

Affects PMD Version:
7.0-rc1 upgrading from 6.55

Rule:
Unused static import

Description:
This static method is imported and being used. It comes from the parent interface on the outer class, but is being used by a static nested class so it must be imported.

Expected outcome:
PMD 7.0-rc1 reports a violation, but that's wrong and not reported by 6.55.

# File Line Problem
1 LocalAsyncLoadingCache.java 19 Unused static import 'com.github.benmanes.caffeine.cache.LocalAsyncCache.composeResult'

Running PMD through: Gradle
This requires workaround in gradle/gradle#24502

Metadata

Metadata

Assignees

Labels

a:false-positivePMD flags a piece of code that is not problematic

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions