Skip to content

False-positive for UPM_UNCALLED_PRIVATE_METHOD in interface #1988

@phoenix384

Description

@phoenix384

Private methods in interfaces that are called by default methods are flagged with UPM_UNCALLED_PRIVATE_METHOD - "Private method xyz is never called".

Example code:

public interface TestInterface {
	default void method() {
		privateMethod();
	}
	private void privateMethod() {
		// this method is flagged
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions