Oscar
07/23/2025, 12:35 PM@Deprecated
, but this obviously gives warnings on all usages of the given classes. The aim is to warn users to not use these classes, but internally I have to keep support for them. Is there a way to suppress deprecation warnings of my own code without suppressing deprecations from let's say other libraries etc?Dmitry Khalanskiy [JB]
07/23/2025, 12:36 PM@Suppress("DEPRECATION")
or @Suppress("DEPRECATION_ERROR")
, depending on the DeprecationLevel
.mbonnin
07/23/2025, 12:36 PMmbonnin
07/23/2025, 12:37 PMDmitry Khalanskiy [JB]
07/23/2025, 12:37 PMmbonnin
07/23/2025, 12:37 PMmbonnin
07/23/2025, 12:38 PM@file:Suppress("DEPRECATION")
in a bunch of files because we still need to use those symbols internally but the end result is that we effectgivelly ignore all deprecations in those filesmbonnin
07/23/2025, 12:39 PMDmitry Khalanskiy [JB]
07/23/2025, 12:41 PMDmitry Khalanskiy [JB]
07/23/2025, 12:42 PMbod
07/23/2025, 12:46 PMOscar
07/23/2025, 12:48 PMmbonnin
07/23/2025, 12:49 PMare there any downsides to using star imports for first-party packages?Mainly that it requires special formatting rules if not the star imports end up being removed I think. Have never really dug into this but I've seen it before
Oscar
07/23/2025, 12:50 PMmbonnin
07/23/2025, 12:51 PM-Xignore-deprecation-for=com.example1,comp.example2,...
mbonnin
07/23/2025, 12:52 PMOscar
07/23/2025, 1:18 PM