You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/11/21 17:43:40 UTC

[commons-rdf] branch master updated: Use blocks.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rdf.git


The following commit(s) were added to refs/heads/master by this push:
     new e589c67  Use blocks.
e589c67 is described below

commit e589c675c42c759f6370d7afadca768fcd1100eb
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 21 12:43:36 2020 -0500

    Use blocks.
---
 .../src/main/java/org/apache/commons/rdf/jena/JenaRDF.java            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/JenaRDF.java b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/JenaRDF.java
index 62327a8..3bc3dc5 100644
--- a/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/JenaRDF.java
+++ b/commons-rdf-jena/src/main/java/org/apache/commons/rdf/jena/JenaRDF.java
@@ -690,9 +690,9 @@ public final class JenaRDF implements RDF {
      */
     public DatasetGraph asJenaDatasetGraph(final Dataset dataset) {
         final DatasetGraph dsg;
-        if (dataset instanceof JenaDataset)
+        if (dataset instanceof JenaDataset) {
             dsg = ((JenaDataset) dataset).asJenaDatasetGraph();
-        else {
+        } else {
             dsg = DatasetGraphFactory.createGeneral();
             dataset.stream().map(this::asJenaQuad).forEach(dsg::add);
         }