I have a method in one of my classes that I don't want it to be used any more. Basically it breaks encapsulation, and I now have better methods I want to be used instead.
What's the best practice for signaling that a method is deprecated?
I have a method in one of my classes that I don't want it to be used any more. Basically it breaks encapsulation, and I now have better methods I want to be used instead.
What's the best practice for signaling that a method is deprecated?
Add an @Deprecated annotation to that method and tell witch other classes to use in javadoc.