我想知道scala是否有相当于java的@SuppressWarnings可以应用于函数或任何忽略函数发出的任何弃用警告[1]?
1:在我的情况下的相关警告是:method stop in class Thread is deprecated: see corresponding Javadoc for more information.我知道停止的问题,但仍有一些情况由于遗留代码我们必须使用它.
method stop in class Thread is deprecated: see corresponding Javadoc for more information.
scala suppress-warnings
scala ×1
suppress-warnings ×1