0

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?

Aviv Cohn
  • 11,431
  • 20
  • 52
  • 95

2 Answers2

0

Mark using Deprecated annotation.

david a.
  • 5,149
  • 20
  • 23
0

Add an @Deprecated annotation to that method and tell witch other classes to use in javadoc.

Stefan
  • 11,176
  • 5
  • 40
  • 62