• Harshitha Kudur
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 0
    Replies
HI All,

We are planning to submit a manage package to salesforce. We are checking the security related issue using Checkmarx.

We are getting warning messages in Test methods for not using assert statement and multiple trigger on same object.

Will below warnings fail in the actual saleforce security review? 


User-added image



I am loading a huge xml to document object for parsing. But the heap size consumed in the enterprise edition is more than the developer edition.

Following is the code snippet I used:
public class testhxmlclass
{
    public testhxmlclass ()
    {
    }
    public void LoadHTML()
    {
        try{
            String mappingXML='';
            StaticResource sr = [Select Id, body, Name from StaticResource where Name = testhxmlfile];
            mappingXML = sr.Body.toString();
            system.debug('Before :'+ string.valueof(Limits.getHeapSize()));
            Dom.Document Doc = new Dom.Document();
            Doc.load(mappingXML);
            system.debug('After :'+ string.valueof(Limits.getHeapSize()));
        }
        catch(exception ex)
        {
            system.debug(ex.getmessage());
        }
    }
}


In developer edition following is the result:
Before: 1176801
After: 2283440

In Enterprise edition following is the result
Before:1176801
After: 2435076

What could be the reason?