阅读背景:

在Java中,我如何确保永远不使用虚拟类?

来源:互联网 

I am working on a project in which, to resolve a versioning issue, I am creating many classes which will never be tested and must not ever be used - they just need to be there to keep the compiler happy. I'd like to make sure they are never used. This morning I had the idea of throwing an exception in a static initialization block:I am working on a project in which, to resolve




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: