Code Inspection: Forward declaration without definition
Reports declarations of procedures and functions that are missing their implementation in code.
In Oracle, you can declare a procedure or a function without its body, and write the implementation later. The inspection will report names of such procedures or functions that are left without implementation.
Example (Oracle):
DECLARE PROCEDURE foo(a int, b varchar2);
BEGIN
NULL;
END;
The
foo
procedure is declared but is missing implementation. We can add the implementation to get rid of the error. DECLARE PROCEDURE foo(a int, b varchar2);
PROCEDURE foo(a int, b varchar2) IS
BEGIN
NULL;
END;
BEGIN
NULL;
END;
Suppress an inspection in the editor
Position the caret at the highlighted line and press Alt+Enter or click .
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.
Last modified: 16 July 2021