java - Eclipse:为何方法默认未显示注释,鼠标悬浮却可以看到注释呢?
迷茫
迷茫 2017-04-18 10:49:49
0
3
595

查看Java8中CompletableFuture.java的源码,发现thenApply方法上面没有写注释,但是将鼠标放到thenApply上面却可以看到注释,请问这是为什么呢?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
洪涛

thenApplyMethod annotations are in the interface, this is the specific implementation.

阿神

This is not a comment, it is a document. It was actually found in the documentation.

阿神

This is Java DOC. IDEs generally provide such a function (you can view it by hovering the mouse over the method)

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template