Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-2230

CoordinateBuilder should set null for empty parts of G:A:P:C:V

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 2.14.0.Final
    • Dependencies

      CoordinateBuilder, when given "G:A:::V", should set P and C to null. Having them empty strings is no good.
      Consider machine-provided lists contaning:
      org.foo:foo-bar:::4.1.2
      This should end with the same result as parsing
      org.foo:foo-bar:4.1.2
      whereas it ends up with P and C set to empty strings, and forces the user of the api to do extra check for an empty string value.

      Related:
      "Malformed coordinate. Should be groupId:artifactId:[packaging]:[classifier]:[version]");
      should read
      "Malformed coordinate. Should be groupId:artifactId:[packaging:[classifier:]][version]");

      And javadoc's
      <groupId>:<artifactId>[:<packaging>[:<classifier>]]:<version>
      should read
      <groupId>:<artifactId>[:<packaging>[:<classifier>]]:[<version>]

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

                Created:
                Updated:
                Resolved: