@Deprecated means you should no longer use this particular class or method, as it will be removed in the future. This annotation is intended for this. Therefore, to answer shortly, if you do not want API users to use this method more, you should use @Deprecated. Because otherwise you will end up using users who still use methods / classes that you remove in future assemblies, and their projects will be violated when they are updated.
source share