cactoos
cactoos copied to clipboard
Put @Deprecated annotation on disabled methods
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 I think it a good idea. @victornoel WDYT?
@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 :)