cactoos icon indicating copy to clipboard operation
cactoos copied to clipboard

Put @Deprecated annotation on disabled methods

Open andreoss opened this issue 5 years ago • 2 comments

We can annotate disabled methods which throw UnsupportedOperationException (i.e mutation methods on Collection) in order to provide an extra clue for static analyzers and IDEs about them.

andreoss avatar Nov 10 '20 21:11 andreoss

@andreoss I think it a good idea. @victornoel WDYT?

fabriciofx avatar Nov 10 '20 23:11 fabriciofx

@andreoss @fabriciofx I'm not clear what this does provide exactly in practice… I'm a bit reluctant to annotate a method with something that is not really the "truth" without a good reason :)

victornoel avatar Nov 14 '20 18:11 victornoel