deprecated-classes.md
September 23, 2022 ยท View on GitHub
code pal for ABAP > Documentation > Deprecated Classes
Deprecated Classes
What is the intent of the check?
This check searches for the usage of deprecated objects which should be replaced by newer objects.
How does the check work?
The check searches for occurrences of the following objects:
CL_AUNIT_ASSERTIF_AUNIT_CONSTANTS
How to solve the issue?
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.
What to do in case of exception?
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`