Skip to content

Commit

Permalink
Compressing lambdas into contructor refs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Jun 30, 2015
1 parent d498f72 commit 657937f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -44,8 +44,8 @@ public class TransformationFactory {
* @throws SecurityException if security exception occurred
*/
public TransformationFactory() {
mimeToTransform.put(contentTypeSPARQLQuery, is -> new SparqlQueryTransform(is));
mimeToTransform.put(APPLICATION_RDF_LDPATH, is -> new LDPathTransform(is));
mimeToTransform.put(contentTypeSPARQLQuery, SparqlQueryTransform::new);
mimeToTransform.put(APPLICATION_RDF_LDPATH, LDPathTransform::new);
}

/**
Expand Down

0 comments on commit 657937f

Please sign in to comment.