I was wondering if scala had an equivalent to java's @SuppressWarnings that can be applied to a function or whatever to ignore any deprecation warnings[1] that function emits?
1: Relevant warning in my case is: method stop in class Thread is deprecated: see corresponding Javadoc for more information.
I am aware of the problems with stop however there are still some cases where due to legacy code we have to use it.
Нет, и запрос на улучшение [1] для такой возможности был закрыт как wontfix
.
Я согласен, что это было бы полезно. Я ожидаю, что основная команда Scala не против этой идеи, но у них ограниченные ресурсы и много более приоритетных задач.