本文介绍了Java:“尚未实现”的通用注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Java中是否有一个共同的或标准的注释用于定义的方法,但尚未实现?
Is there a common or standard annotation in Java for methods that, while defined, have yet to be implemented?
因此,例如,如果我使用的话包含类似
So that, for instance, if I were using a pre-alpha version of a library that contained something like
@NotImplementedYet
public void awesomeMethodThatTotallyDoesExactlyWhatYouNeed(){ /* TODO */ }
尝试拨打<$ c $时会收到编译时警告c> awesomeMethodThatTotallyDoesExactlyWhatYouNeed ?
推荐答案
您可能想要使用并在运行时检测尚未实现的调用方法你的测试。
You might want to use UnsupportedOperationException and detect calls to-yet-to-be-implemented methods when running your tests.
这篇关于Java:“尚未实现”的通用注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!