Darryl Miles
12/17/2023, 11:11 AMYoussef Shoaib [MOD]
12/17/2023, 12:20 PMYoussef Shoaib [MOD]
12/17/2023, 12:20 PMDarryl Miles
12/17/2023, 12:31 PM-Xrender-internal-diagnostics-names
this is exectly what I prefer, however the name "internal" in there is a misonomer, because they are external contract API labels the moment the customer needs them in their @Suppress in their project. Also I don't need them to be on ERROR messages too, only for scenarios that have a suppression, however having them for both is better than not at all.
Thanks again for reply.Youssef Shoaib [MOD]
12/17/2023, 12:34 PMDarryl Miles
12/17/2023, 12:37 PM@Suppress("UNUSED_PARAMETER")
the kotlin codebase is littered with them itself. Or just bring back the original @SuppressWarning("")
from JavaYoussef Shoaib [MOD]
12/17/2023, 12:43 PMdmitriy.novozhilov
12/20/2023, 11:42 AMdmitriy.novozhilov
12/20/2023, 11:46 AMhowever the name "internal" in there is a misonomer, because they are external contract API labels the moment the customer needs them in theirDescription of Youssef is quite correct The only thing I'd like to add that those names are not meant to be stable. If some diagnostic name will be changed it doesn't break non binary or source compatibility. It just may bring the new warnings to be reported It indeed may break the compilation within their project@Suppress
-Werror
, but in the same way as any other actually new warning added to the compilerDarryl Miles
01/17/2024, 4:55 AM@Suppress("UNUSED_PARAMETER")
is a common case and will always be external API contract, but still IDEA does not offer to as an action to solve, or content assist around it. Understand that many of the OTHER suppression types are still considered internal API, but that is not my use case.
Many signature of callback can not have their parameters changed, or maybe it is legacy API that can not have signature changed to remove the param.