Github user stain commented on a diff in the pull request: https://github.com/apache/commons-rdf/pull/27#discussion_r95843235 --- Diff: simple/src/main/java/org/apache/commons/rdf/simple/experimental/AbstractRDFParser.java --- @@ -240,7 +240,7 @@ public T rdfTermFactory(RDF rdfTermFactory) { public T contentType(RDFSyntax rdfSyntax) throws IllegalArgumentException { AbstractRDFParser<T> c = clone(); c.contentTypeSyntax = Optional.ofNullable(rdfSyntax); - c.contentType = c.contentTypeSyntax.map(syntax -> syntax.mediaType); + c.contentType = c.contentTypeSyntax.map(syntax -> syntax.mediaType()); return c.asT(); --- End diff -- It's just a generics trick so that subclasses of `AbstractRDFParser` can return their own type in all the setter methods rather than `RDFParser` or `AbstractRDFParser`, which would hide any additional methods they specialize with.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org