Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Miklosovic, Stefan via dev
cKenzie Sent: Friday, October 13, 2023 15:36 To: dev Cc: Miklosovic, Stefan Subject: Re: [DISCUSS] putting versions into Deprecated annotations NetApp Security WARNING: This is an external email. Do not click links or open attachments unless you recognize the sender and know the content is saf

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Josh McKenzie
6.0, all 4.0 stuff can go > away etc ... > > > From: Miklosovic, Stefan via dev > Sent: Friday, October 13, 2023 15:00 > To: dev@cassandra.apache.org > Cc: Miklosovic, Stefan > Subject: Re: [DISCUSS] putting versions into Deprecated anno

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Miklosovic, Stefan via dev
ubject: Re: [DISCUSS] putting versions into Deprecated annotations NetApp Security WARNING: This is an external email. Do not click links or open attachments unless you recognize the sender and know the content is safe. OK. So here we are ... round 1 will be to map how bad it is, round 2 will be t

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Miklosovic, Stefan via dev
into two parts. From: Benjamin Lerer Sent: Friday, October 13, 2023 14:45 To: dev@cassandra.apache.org Subject: Re: [DISCUSS] putting versions into Deprecated annotations NetApp Security WARNING: This is an external email. Do not click links or open

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Maxim Muzafarov
if we decide that, but we should provide some >>> additional information like when it was deprecated and why it is necessary >>> to keep it around otherwise the code-base will bloat and bloat ... >>> >>> (1) https://github.com/apache/cassandra/pull/2801/files >>> >>> __

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Benjamin Lerer
andra/pull/2801/files >> >> ____________ >> From: Mick Semb Wever >> Sent: Friday, October 13, 2023 13:51 >> To: dev@cassandra.apache.org >> Subject: Re: [DISCUSS] putting versions into Deprecated annotations >> >> NetApp Securi

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Benjamin Lerer
> > > From: Mick Semb Wever > Sent: Friday, October 13, 2023 13:51 > To: dev@cassandra.apache.org > Subject: Re: [DISCUSS] putting versions into Deprecated annotations > > NetApp Security WARNING: This is an external email. Do not click l

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Miklosovic, Stefan via dev
it around otherwise the code-base will bloat and bloat ... (1) https://github.com/apache/cassandra/pull/2801/files From: Mick Semb Wever Sent: Friday, October 13, 2023 13:51 To: dev@cassandra.apache.org Subject: Re: [DISCUSS] putting versions into

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Ekaterina Dimitrova
______ >> From: Benjamin Lerer >> Sent: Friday, October 13, 2023 13:07 >> To: dev@cassandra.apache.org >> Subject: Re: [DISCUSS] putting versions into Deprecated annotations >> >> NetApp Security WARNING: This is an external email. Do not click links o

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Benjamin Lerer
re was some > solid guidance on this. > > > From: Benjamin Lerer > Sent: Friday, October 13, 2023 13:07 > To: dev@cassandra.apache.org > Subject: Re: [DISCUSS] putting versions into Deprecated annotations > > NetApp Security WARNING: This is an exte

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Mick Semb Wever
On Fri, 13 Oct 2023 at 13:07, Benjamin Lerer wrote: > I was asking because outside of configuration parameters and JMX calls, > the approach as far as I remember was to just change things without using > an annotation. > Yes, it is my understanding that such deprecation is only needed on method

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Miklosovic, Stefan via dev
was some solid guidance on this. From: Benjamin Lerer Sent: Friday, October 13, 2023 13:07 To: dev@cassandra.apache.org Subject: Re: [DISCUSS] putting versions into Deprecated annotations NetApp Security WARNING: This is an external email. Do not click

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Benjamin Lerer
%2F%2Fcheckstyle.sourceforge.io%2Fapidocs%2Fcom%2Fpuppycrawl%2Ftools%2Fcheckstyle%2Fchecks%2Fannotation%2FMissingDeprecatedCheck.html&data=05%7C01%7CStefan.Miklosovic%40netapp.com%7C59fa2b3786ff436c83ba08dbcbd5ece7%7C4b0911a0929b4715944bc03745165b3a%7C0%7C0%7C638327891917050879%7CUnknown%7CTWFpbGZsb3

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Miklosovic, Stefan via dev
CJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8qKu8ob%2BvPdHfUQdkxr5C%2BgkR5iMcUaEqw9a%2FNN276k%3D&reserved=0> > > > > ____________ > > From: Francisco Guerrero mailto:fran...@apache.org>> > > Sent: Tuesday, October 10, 2023 23:34 > &g

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-13 Thread Benjamin Lerer
ceforge.io/apidocs/com/puppycrawl/tools/checkstyle/checks/annotation/MissingDeprecatedCheck.html > > > > > > > > > From: Francisco Guerrero > > > Sent: Tuesday, October 10, 2023 23:34 > > > To: dev@cassandra.apache.or

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-11 Thread Francisco Guerrero
; > the presence of both annotation and Javadoc comment is just enough. > > > > (1) > > https://checkstyle.sourceforge.io/apidocs/com/puppycrawl/tools/checkstyle/checks/annotation/MissingDeprecatedCheck.html > > > > ____________ > >

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-11 Thread Miklosovic, Stefan
rero > Sent: Tuesday, October 10, 2023 23:34 > To: dev@cassandra.apache.org > Subject: Re: [DISCUSS] putting versions into Deprecated annotations > > NetApp Security WARNING: This is an external email. Do not click links or > open attachments unless you recognize the sender and know

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-11 Thread Maxim Muzafarov
hecks/annotation/MissingDeprecatedCheck.html > > > From: Francisco Guerrero > Sent: Tuesday, October 10, 2023 23:34 > To: dev@cassandra.apache.org > Subject: Re: [DISCUSS] putting versions into Deprecated annotations > > NetApp Security WARNING: This is an external email. Do no

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-10 Thread Miklosovic, Stefan
hat in more detail, there are Javadocs as mentioned. Let's > > just stick with the standard stuff. > > > > I will try to implement this for 5.0 (versions since it was deprecated) > > with my take on what should be removed (forRemoval = true) but that should > > be

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-10 Thread Francisco Guerrero
.0 (versions since it was deprecated) > > with my take on what should be removed (forRemoval = true) but that should > > be definitely cross-checked on review as Mick mentioned. > > > > > > From: Mick Semb Wever > > Sent: Monday, Octo

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-10 Thread Maxim Muzafarov
it was deprecated) with > my take on what should be removed (forRemoval = true) but that should be > definitely cross-checked on review as Mick mentioned. > > ____________ > From: Mick Semb Wever > Sent: Monday, October 9, 2023 10:55 > To: dev@cassandr

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-10 Thread Josh McKenzie
> > From: Mick Semb Wever > Sent: Monday, October 9, 2023 10:55 > To: dev@cassandra.apache.org > Subject: Re: [DISCUSS] putting versions into Deprecated annotations > > NetApp Security WARNING: This is an external email. Do not click lin

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-10 Thread Miklosovic, Stefan
should be removed (forRemoval = true) but that should be definitely cross-checked on review as Mick mentioned. From: Mick Semb Wever Sent: Monday, October 9, 2023 10:55 To: dev@cassandra.apache.org Subject: Re: [DISCUSS] putting versions into Deprecated a

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-09 Thread Mick Semb Wever
> > Tangential question to this is if everything we deprecated is eligible for > removal? In other words, are there any cases when forRemoval would be > false? Could you elaborate on that and give such examples or do you all > think that everything which is deprecated will be eventually removed? >

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-06 Thread Miklosovic, Stefan
. From: Francisco Guerrero Sent: Saturday, October 7, 2023 0:54 To: dev@cassandra.apache.org Subject: Re: [DISCUSS] putting versions into Deprecated annotations NetApp Security WARNING: This is an external email. Do not click links or open attachments unless you

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-06 Thread Francisco Guerrero
> Might be nice to support a 3rd param that's a String for the reason it's > deprecated. Javadocs offers this natively /** * @deprecated Use instance method {@link #newMethod(Param1, Param2...)} instead. */ @Deprecated So we could leverage javadocs for this purpose On 2023/1

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-06 Thread Doug Rohrer
+1 on reason string, especially some way to indicate what replaces a method if it’s being moved into some other class/new method with more parameters/etc. I’ve found lots of cases (in code bases in general, not C* in particular) where something is marked as Deprecated but there’s no mention of a

Re: [DISCUSS] putting versions into Deprecated annotations

2023-10-06 Thread Josh McKenzie
Might be nice to support a 3rd param that's a String for the reason it's deprecated. i.e. "Replaced by X", "Unmaintained", "Obsolete", "See CASSANDRA-N", link to a dev ML thread on pony mail, etc. That way if someone comes across it in the codebase they have some context to follow up on if

[DISCUSS] putting versions into Deprecated annotations

2023-10-06 Thread Miklosovic, Stefan
Hi list, I have a ticket to discuss (1). When we deprecate APIs / methods etc, what I want to suggest is that we might start to explicitly add the version when that happened. For example, if you deprecated something which goes to 5.0, would you be so nice to do this? @Deprecated(since = "5.0"