7
A
回答
4
Afaik,它还不存在,你必须创建自己的。
JEP277定义@Deprecated(EXPERIMENTAL)
,但它只是一个命题。
2
在hadoop中有InterfaceStability
注释用于这些目的。有趣的是这个注释并不稳定。我怀疑JDK中会出现这样的事情。
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class InterfaceStability {
/**
* Can evolve while retaining compatibility for minor release boundaries.;
* can break compatibility only at major release (ie. at m.0).
*/
@Documented
public @interface Stable {};
/**
* Evolving, but can break compatibility at minor release (i.e. m.x)
*/
@Documented
public @interface Evolving {};
/**
* No guarantee is provided as to reliability or stability across any
* level of release granularity.
*/
@Documented
public @interface Unstable {};
}
相关问题
- 1. Titanium.Platform.id DEPRECATED in 1.8.0
- 2. 什么是@Deprecated在Java中的.NET等价物?
- 3. 为什么@deprecated的RetentionPolicy是RUNTIME?
- 4. MySQL:什么是LIKE的反向版本?
- 5. 什么是? in?char
- 6. in()...它是做什么的?
- 7. 什么是反向通用关系?
- 8. Renderscript,`in`参数是什么?
- 9. mysql中in函数的反义词是什么?
- 10. 什么是Java中的后向引用?
- 11. Java注释与像@Deprecated
- 12. 什么是.css in css?
- 13. 什么是res:// */in .net?
- 14. 是什么意思“!” in require.js
- 15. 什么是反向代理,为什么我应该使用Node.JS?
- 16. 什么是reader.getPageRotation()in iTextSharp.text.pdf
- 17. 什么是PREMERGED dll in .net
- 18. byte [] to Java in Java:输出是什么意思?
- 19. Java反射API中反射的方法是什么?
- 20. 什么是$ ArrayType $ 16008 in> net Reflector?
- 21. OnSetActive()的“相反”是什么?
- 22. 递归反向Java Java
- 23. Java反射:我的Collection包含什么?
- 24. 为什么我的y坐标反向
- 25. 什么是MySQL中的“point-in-select”?
- 26. 什么样的For-In循环是?
- 27. 这是什么 '地图' mean..in Django的
- 28. IP-in-IP的必要性是什么?
- 29. 在接口上使用@Deprecated表示法有什么好处?
- 30. 为什么HtmlAgilityPack反向输出
不是内置的,但你可以自己做。像'@ Beta'一样。 – Tunaki
您可以使用[番石榴中的'@ Beta'注释](http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/annotations/Beta.html)。 – azurefrog
另请参阅:http://stackoverflow.com/questions/32555597/annotating-unstable-classes-methods-for-javadoc – assylias