Ignore package-scope warnings but not public-->private warnings?
已回答
I know how to make things warnings and weak warnings, and I can enable the narrowing of scope warning within the code inspector. I also know how to maintain different settings for the inspection so that I can suddenly turn on harsh inspection when I am ready to release code.
However I am an advocate of keeping things either private or public scope only (I disregard package scope, for reasons I'll not argue about here, it's really not worth it).
So I'd like the following warnings:
- public could be narrowed to private
- package could be narrowed to private
With no warning at all on
- public could be narrowed to package. <----don't want this.
Can this be done?
请先登录再写评论。
No, you can only ignore suggestions public -> package local for top level classes.
Anna
Thanks.