Menu

#329 new rule: Unsafe "Implementation as Map" in production code

open
nobody
None
5
2013-02-16
2011-07-18
No

new rule: Unsafe "Implementation as Map" in production code

Defaults to only analyzing production code, not tests.

This rule is defined as implementing an interface with a map, when it is known that you are not implementing all methods. By default, ignores test classes. For instance:

[mouseClicked: { /* */ }] as MouseListener
Not all mouse listener methods are implemented. This is dangerous.

Discussion


Log in to post a comment.