Skip to content

Long string concat gets turned into bad code #8

@verdverm

Description

@verdverm
-    fooHelp = fooHelpBase +
-      "\n\n===============   fooRendered   ==============\n" + fooRendered.replaceAll("\t", "  ") +
-      "\n\n===============   fooEnriched   ==============\n" + fooEnriched.replaceAll("\t", "  ") +
-      "\n\n===============   fooOptions    ==============\n" + fooOptions.replaceAll("\t", "  ")
+    fooHelp = fooHelpBase + "\n\n===============   fooRendered   ==============\n" 
+      + fooRendered.replaceAll("\t", "  ") + "\n\n===============   fooEnriched   ==============\n" 
+      + fooEnriched.replaceAll("\t", "  ") + "\n\n===============   fooOptions    ==============\n" 
+      + fooOptions.replaceAll("\t", "  ")

The formatted code has the space at the end of the line issue too

Jenkins yelled at me:

hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: java.lang.String.positive() is applicable for argument 

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstreamUpstream package error

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions