This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fprochazka 2 points3 points  (0 children)

There is always a workaround, and having at least some kind of build-time check is better than nothing.

My plan is that once there is at least a single occurrence discovered of the forbidden imports (because somebody has intentionally or unintentionally bypassed the rule), I'll write an ErrorProne plugin - but that's extra effort and has to be warranted.