function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ManvithaManvitha 

how to call private method in triggers

Hi all,
Need to resolve some Program for Management Development (PMD) issue , have classes containing public methods & attributes  and are called in so many triggers so cant make those private , so can anyone help me on this , how can i  achieve pmd problm free classes . 

err: 1. This class has a bunch of public methods and attributes 
2 .Too many fields 
AnkaiahAnkaiah (Salesforce Developers) 
Hi Manvitha,

We can't able to call the private methods from another class/trigger.

We need to use public methods then only you can able to access.

If this helps, Please mark it as best answer.

Thanks!!
 
ManvithaManvitha
Yeah , but unable to overcome this pmd issues without making those method private.