Skip to content

Files

Latest commit

 

History

History
20 lines (12 loc) · 539 Bytes

UnsafeImplementationAsMap.md

File metadata and controls

20 lines (12 loc) · 539 Bytes

Pattern: Unsafe implementation as map

Issue: -

Description

Reports incomplete interface implementations created by map-to-interface coercions.

By default, this rule does not apply to test files.

Example of violations:

[mouseClicked: { ... }] as MouseListener
//not all MouseListener methods are implemented which can lead to UnsupportedOperationException-s

Further Reading