A RetroSearch Logo

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

Search Query:

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

[java] ImplicitFunctionalInterface should not be reported on sealed interfaces · Issue #5724 · pmd/pmd · GitHub

Affects PMD Version: 7.13.0

Rule: ImplicitFunctionalInterface

Description:

I have sealed interface:

public sealed interface MyInterface permits MyInterface1, MyInterface2 {
  String message();
}

and PMD is reporting false positive for it with: ImplicitFunctionalInterface: Annotate this interface with @FunctionalInterface or with @SuppressWarnings("PMD.ImplicitFunctionalInterface") to clarify your intent.

Sealed interfaces can't be annotated with FunctionalInterface.


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