code pal for ABAP > Documentation > Deprecated Classes
This check searches for the usage of deprecated objects which should be replaced by newer objects.
The check searches for occurrences of the following objects:
CL_AUNIT_ASSERT
IF_AUNIT_CONSTANTS
Reference non-deprecated/newer objects instead. For the above example, a corrected code would look like:
DATA aunit TYPE REF TO cl_abap_unit_assert.
In exceptional cases (e.g.: for keeping release compatibility), you can suppress this finding by using the pseudo comment "#EC DEPRECATED_CLAS
which should be placed right after the statement:
DATA aunit TYPE REF TO cl_aunit_assert. "#EC DEPRECATED_CLAS`