marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ja...@apache.org
Subject [10/17] git commit: Added comment on a unclear if-check
Date Wed, 10 Sep 2014 09:39:01 GMT
Added comment on a unclear if-check


Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/743eaa26
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/743eaa26
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/743eaa26

Branch: refs/heads/ldp
Commit: 743eaa26872eb20920e28353f598dce4be7caec5
Parents: f995f4b
Author: Jakob Frank <jakob@apache.org>
Authored: Thu Sep 4 15:33:29 2014 +0200
Committer: Jakob Frank <jakob@apache.org>
Committed: Fri Sep 5 10:22:47 2014 +0200

----------------------------------------------------------------------
 .../platform/core/services/io/MarmottaIOServiceImpl.java     | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/743eaa26/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/io/MarmottaIOServiceImpl.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/io/MarmottaIOServiceImpl.java
b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/io/MarmottaIOServiceImpl.java
index 20bce32..768f231 100644
--- a/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/io/MarmottaIOServiceImpl.java
+++ b/platform/marmotta-core/src/main/java/org/apache/marmotta/platform/core/services/io/MarmottaIOServiceImpl.java
@@ -27,11 +27,7 @@ import org.slf4j.LoggerFactory;
 
 import javax.annotation.PostConstruct;
 import javax.enterprise.context.ApplicationScoped;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.LinkedHashSet;
-import java.util.List;
-import java.util.Set;
+import java.util.*;
 
 /**
  * User: Thomas Kurz
@@ -59,6 +55,7 @@ public class MarmottaIOServiceImpl implements MarmottaIOService {
 	public List<String> getAcceptTypes() {
         Set<String> acceptTypes = new LinkedHashSet<String>();
         for(RDFFormat format : RDFParserRegistry.getInstance().getKeys()) {
+            // Ignore binary formats
             if(format.hasCharset()) {
                 acceptTypes.addAll(format.getMIMETypes());
             }
@@ -74,6 +71,7 @@ public class MarmottaIOServiceImpl implements MarmottaIOService {
 	public List<String> getProducedTypes() {
 	    Set<String> producedTypes = new LinkedHashSet<String>();
         for(RDFFormat format : RDFWriterRegistry.getInstance().getKeys()) {
+            // Ignore binary formats
             if(format.hasCharset()) {
                 producedTypes.addAll(format.getMIMETypes());
             }


Mime
View raw message