zsmb
03/09/2019, 5:55 PM@Deprecated(level = ERROR, ...)
, or even HIDDEN
, but still use it in my own code somehow? Seems like I can only suppress the WARNING
level of deprecation.tseisel
03/10/2019, 2:29 AMinternal
, so that only your module can access it, and mark it as Deprecated(level = WARNING)
so you remember that it shouldn't be used.
Even better, you could mark the public declaration as Deprecated (any level you want), and move its implementation to a private declaration that you use from your code.zsmb
03/10/2019, 6:40 AMinternal
. The tricky part is that I actually need to use it from another module (of the same library, so this is also sort of internal usage), so now I have a single Java file in that other module with a helper that calls this internal
API, since Java code can call into internal declerations... 😅zsmb
03/10/2019, 6:41 AM@JvmName
so that the name of the function doesn't get mangled, and can be called reliably.Dico
03/10/2019, 8:02 AMzsmb
03/10/2019, 8:51 AMWARNING
level, and not the stronger ones.