A RetroSearch Logo

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

Search Query:

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

[apex] AvoidDirectAccessTriggerMap incorrectly detects array access in classes · Issue #792 · pmd/pmd · GitHub

Affects Version: 6.0.0
Rule Set:
ErrorProne > AvoidDirectAccessTriggerMap

Description:
Rule should only apply to *.trigger classes but detect arbitrary *.cls files with array [] brackets.

Code Sample demonstrating the issue:

public class NotATrigger {
   void foo(){
        Account[] accounts = opportunity.Accounts[0];
   }
}

Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]
all tools


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