Home  >  Q&A  >  body text

java - Eclipse:为何方法默认未显示注释,鼠标悬浮却可以看到注释呢?

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

迷茫迷茫2744 days ago560

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:51:49

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

    reply
    0
  • 阿神

    阿神2017-04-18 10:51:49

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

    reply
    0
  • 阿神

    阿神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)

    reply
    0
  • Cancelreply