Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

IllegalType does not check package/imports of type #57

romani opened this Issue Nov 13, 2013 · 2 comments


None yet
3 participants

romani commented Nov 13, 2013

SF issue: 530
Creator: Jem Mawson


IllegalType will fail on a type with the same classname as an illegal type, without checking the package of that classname.

For example, the fj library at functionaljava.org has fj.data.HashMap. This does not implement java.util.Map and so cannot be declared as a Map.

Checkstyle will consider "HashMap map;" to be an illegal type, because it does not differentiate between fj.data.HashMap and java.util.HashMap.

+1. Definitely an annoying issue (eg, java.util.Timer and com.codahale.metrics.Timer)


romani commented Dec 31, 2014

Should be addressed in #78

@romani romani closed this Mar 12, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment