java - How to prevent imports of packages from all classes except one class? -


i migrate code common collection 3 common collection 4 after migration want prevent imports of common collection 3 packages in classes except 1 class.

(unfortunately not have time migrate class).

i have found can not find how configure exclude list: http://checkstyle.sourceforge.net/config_imports.html#illegalimport

is possible configure checkstyle exclude classes?

other tools can it?

if ok configuring checkstyle rules achieve this, need use more complex option (illegalimport has 1 parameter - illegalpackage):

importcontrol.


Comments

Popular posts from this blog

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -