Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-404

Returning this from Model setter doesn't always work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 2.0.0.Final
    • 2.0.0.Beta5
    • MTA CLI
    • None

      I had

      VulnerabilityModel vulM = vulGS.create().setCve(vul).setArchive(jar);
      

      The second setter returned null.
      It was handled by PropertyAnnotationHandler.

      I've added:

                  // If return type is this class, return this.
                  if (method.getReturnType().isAssignableFrom(element.getClass()))
                      return element;
      

            ozizka_jira Ondrej Zizka (Inactive)
            ozizka_jira Ondrej Zizka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: