Uploaded image for project: 'Apache Commons RDF'
  1. Apache Commons RDF
  2. COMMONSRDF-47

RDFSyntax should be interface, not enum

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.2.0
    • Fix Version/s: 0.5.0
    • Component/s: api
    • Labels:
      None

      Description

      [~p_ansell] raises in pull request 25

      Using enum for RDFSyntax is a bad idea unless it overrides an interface and the interface is used in method signatures instead of the enum. There are many other RDFSyntaxes, and enum (without implementing an interface) is only suited to cases where the full set are known a priori.

        Attachments

          Activity

            People

            • Assignee:
              stain Stian Soiland-Reyes
              Reporter:
              stain Stian Soiland-Reyes
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: