2021-01-28 15:53:33 +01:00
|
|
|
include::../description.adoc[]
|
2020-06-30 12:47:33 +02:00
|
|
|
|
|
|
|
include::../noncompliant.adoc[]
|
|
|
|
|
|
|
|
include::../compliant.adoc[]
|
|
|
|
|
|
|
|
== Exceptions
|
|
|
|
|
|
|
|
The members and methods of a deprecated class or interface are ignored by this rule. The classes and interfaces themselves are still subject to it.
|
|
|
|
|
2021-02-02 15:02:10 +01:00
|
|
|
|
2020-06-30 12:47:33 +02:00
|
|
|
----
|
|
|
|
/**
|
|
|
|
* @deprecated (when, why, etc...)
|
|
|
|
*/
|
|
|
|
@Deprecated
|
|
|
|
class Qix {
|
|
|
|
|
|
|
|
public void foo() {} // Compliant; class is deprecated
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @deprecated (when, why, etc...)
|
|
|
|
*/
|
|
|
|
@Deprecated
|
|
|
|
interface Plop {
|
|
|
|
|
|
|
|
void bar();
|
|
|
|
|
|
|
|
}
|
|
|
|
----
|