查看Java8中CompletableFuture.java的源码,发现thenApply方法上面没有写注释,但是将鼠标放到thenApply上面却可以看到注释,请问这是为什么呢?
PHP中文网2017-04-18 10:51:49
thenApply
Method annotations are in the interface, this is the specific implementation.
阿神2017-04-18 10:51:49
This is not a comment, it is a document. It was actually found in the documentation.
阿神2017-04-18 10:51:49
This is Java DOC. IDEs generally provide such a function (you can view it by hovering the mouse over the method)