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
  • 15,543
  • 25
  • 68
  • 131

2 Answers2

0

Mark using Deprecated annotation.

david a.
  • 5,283
  • 22
  • 24
0

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

Stefan
  • 12,108
  • 5
  • 47
  • 66