Dear Skywalking Developers,
Thank you for wu.sheng invitation for discussing about Deprecated API,
I've thrown my suggestion below the PR:
<https://github.com/apache/skywalking/pull/4318>.
Here's a copy:
We can't avoid using deprecated method, but it's our duty to tell future
users that method is deprecated.
Just like recent rectifications of invoking rewrited method in
deprecated method body, but keep|Deprecated|annotation on the deprecated
method.
e.g.
@Deprecated // Keep this annotation
public T deprecatedMethod() {
return newMethod();
}
public T rewritedMethod() {
// Latest codes here...
}
In a short, Using|Deprecated|api is my suggestion.
BR.
johnniang