I'd like to be able to annotate a public class/interface in Java as @NonPublic
, which would mean This interface is only to be used within this project, it is not part of the public API that this project exports.
This is common for projects that are composed of several jar files. Not all public
classes/interfaces are meant to really be public outside of your jar.
Do you know of any tool/framework/plugin that does this?