Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75361

"Did you forget the `def` keyword?" even type was set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • workflow-cps-plugin
    • None

      Latest version of plugin added a warning if def is missing for a variable.
      I have variables that have string or boolean as type, for example.
      And getting warnings now

      Did you forget the `def` keyword? WorkflowScript seems to be setting a field named xxxxx (to a value of type String) which could lead to memory leaks or other issues.
      

            Unassigned Unassigned
            vladaurosh Vlad Uros
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: