A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/2399 below:

false positive with security enforced with line break · Issue #2399 · pmd/pmd · GitHub

Affects PMD Version: 6.22.0

Rule: ApexCRUDViolation

Description:

When "WITH SECURITY_ENFORCED" is given in a separate line, then it is not seen by the rule. The rule reports a violation then.

Code Sample demonstrating the issue:

public class Foo {
	public Contact foo(String tempID) {
		Contact c = [SELECT Name FROM Contact WHERE Id=: tempID
		WITH SECURITY_ENFORCED];
		return c;
	}
}

Expected outcome:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4