logo
  • 教程列表
  • SO官方文檔
  • 註釋
    • 使用註釋
    • 註釋主建構函式
    • 建立自己的註釋
  1. StackOverflow 文件
  2. Scala Language 教程
  3. 註釋
  4. 使用註釋

使用註釋

Created: November-22, 2018

此示例註釋表明以下方法是 deprecated 。

@deprecated
def anUnusedLegacyMethod(someArg: Any) =  {
  ...
}

這也可以等效地寫成:

@deprecated def anUnusedLegacyMethod(someArg: Any) =  {
  ...
}
  • 註釋主建構函式
  • 註釋

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明