org.sonar.l10n.plsqlopen.rules.plsql.DeadCode.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zpa-checks Show documentation
Show all versions of zpa-checks Show documentation
Z PL/SQL Analyzer :: Checks
The newest version!
Jump statements (return
, exit
, continue
, and raise
) move control flow out of the current code block.
Typically, any statements in a block that come after a jump are simply wasted keystrokes lying in wait to confuse the unwary.
Noncompliant Code Example
begin
raise my_error;
log('finished'); -- this code will never be executed
end;
Compliant Solution
begin
raise my_error;
end;