Orhan Tozan
03/20/2020, 3:37 PM@Deprecated
class have all of its method automatically marked as deprecated?Orhan Tozan
03/20/2020, 7:08 PMDominaezzz
03/20/2020, 7:11 PMOrhan Tozan
03/20/2020, 7:14 PMOrhan Tozan
03/20/2020, 7:15 PMDeprecated
, the author essentially is discouraging others to use this class, right? How is using any method of the class not the same as using that class?Shawn
03/20/2020, 7:25 PMShawn
03/20/2020, 7:26 PMShawn
03/20/2020, 7:27 PMOrhan Tozan
03/20/2020, 7:27 PMWhat if you already had deprecated methods in the class?Then deprecating a class wouldn't make a difference. The method is deprecated either way.
Shawn
03/20/2020, 7:27 PMOrhan Tozan
03/20/2020, 7:28 PMShawn
03/20/2020, 7:29 PMit can now
?Orhan Tozan
03/20/2020, 7:30 PMShawn
03/20/2020, 7:30 PMShawn
03/20/2020, 7:31 PMShawn
03/20/2020, 7:31 PMShawn
03/20/2020, 7:31 PMOrhan Tozan
03/20/2020, 7:32 PMDominaezzz
03/20/2020, 7:33 PMShawn
03/20/2020, 7:34 PMOrhan Tozan
03/20/2020, 7:35 PMoperator invoke()
method. It feels that I should both mark the class and the invoke method as deprecated, duplicating the annotation with its message.Shawn
03/20/2020, 7:37 PMinvoke()
method, because that suggests to the consumer that invoke()
is not the way you should be using that interface — what you really mean is that that class you’ve deprecated shouldn’t be usedShawn
03/20/2020, 7:38 PMOrhan Tozan
03/20/2020, 7:40 PM