org.sonar.l10n.oe.rules.rssw-oe.compiler.warning.214.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-openedge-plugin Show documentation
Show all versions of sonar-openedge-plugin Show documentation
Enables analysis of OpenEdge projects
The newest version!
This issue is raised whenever a TRANSACTION keyword is found within the actual scope of a transaction, meaning that the TRANSACTION keyword doesn't have any effect.
Noncompliant Code Example
FIND FIRST Customer EXCLUSIVE-LOCK.
DO TRANSACTION:
FIND FIRST Item.
ASSIGN Item.Name = "xx".
END.
Compliant Solution
/* There are different compliant solutions, one may be : */
DO TRANSACTION:
FIND FIRST Customer EXCLUSIVE-LOCK.
ASSIGN Customer.Name = "xx".
FIND FIRST Item.
ASSIGN Item.Name = "xx".
END.