Skip to content

apex.jorje.parser.impl.BaseApexLexer dedupe #779

@suryansh-gupta-Klient

Description

@suryansh-gupta-Klient

Describe the bug
INFO: Deduped array ApexLexer.DFA22_transition. Found 7075528 shorts which is 13MB not including array overhead. Removed 6418975 shorts which is 12MB not counting array overhead. Took 8 ms.
To Reproduce
Steps to reproduce the behavior:
sfdx scanner:run:dfa --target './force-app/main/default/classes' --projectdir './force-app/main/default' --format csv
Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Scanner Version [e.g. 22]

Additional context

apex.jorje.parser.impl.BaseApexLexer dedupe
INFO: Deduped array ApexLexer.DFA22_transition. Found 7075528 shorts which is 13MB not including array overhead. Removed 6418975 shorts which is 12MB not counting array overhead. Took 8 ms.
Exception in thread "main" com.salesforce.exception.UserActionException: Please remove unreachable code to proceed with analysis:
at com.salesforce.graph.build.MethodPathBuilderVisitor.addEdge(MethodPathBuilderVisitor.java:599)
at com.salesforce.graph.build.MethodPathBuilderVisitor.addEdgeFromPreviousSibling(MethodPathBuilderVisitor.java:591)
at com.salesforce.graph.build.MethodPathBuilderVisitor.visit(MethodPathBuilderVisitor.java:178)
at com.salesforce.graph.build.MethodPathBuilderVisitor._visit(MethodPathBuilderVisitor.java:150)
at com.salesforce.graph.build.MethodPathBuilderVisitor._visit(MethodPathBuilderVisitor.java:159)
at com.salesforce.graph.build.MethodPathBuilderVisitor.apply(MethodPathBuilderVisitor.java:97)
at com.salesforce.graph.build.AbstractApexVertexBuilder.afterInsert(AbstractApexVertexBuilder.java:119)
at com.salesforce.graph.build.AbstractApexVertexBuilder.buildVertices(AbstractApexVertexBuilder.java:103)
at com.salesforce.graph.build.AbstractApexVertexBuilder.buildVertices(AbstractApexVertexBuilder.java:99)
at com.salesforce.graph.build.AbstractApexVertexBuilder.buildVertices(AbstractApexVertexBuilder.java:35)
at com.salesforce.graph.build.CustomerApexVertexBuilder.build(CustomerApexVertexBuilder.java:21)
at com.salesforce.graph.build.Util.buildGraph(Util.java:39)
at com.salesforce.graph.ops.GraphUtil.loadSourceFolders(GraphUtil.java:158)
at com.salesforce.Main.execute(Main.java:128)
at com.salesforce.Main.process(Main.java:81)
at com.salesforce.Main.main(Main.java:60)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions