The Welkin Suite Forum

Format Code modifies valid Apex into invalid Apex



Format Code modifies valid Apex into invalid Apex

  • Please log in to reply

#1
windows version welkinsuite

gtasker

    Posted 07 Mar 2021

    An edge case, I am sure, but the following valid line of Apex:

        private static Set<string> FindMergeTags(string template, string splitter)
        {
            string[] tempParts = template.split('\\' + splitter + '(.*?)');
            Set<string> fields = new Set<string>();

    Gets modified into invalid Apex when using WelkinSuite's Format Code option:

    	private static Set<string> FindMergeTags(string template, string splitter)
    	{
    		string[] tempParts = template.split('\\' + splitter + '(.* ?)
    		                                    Set<string> fields = new Set<string> ();


    0 replies to this topic



    Boost Your Productivity. Get Started Today

    Try Free Trial