[Mulgara-svn] r1484 - trunk/src/jar/content-n3/java/org/mulgara/content/n3

pag at mulgara.org pag at mulgara.org
Fri Feb 13 06:51:04 UTC 2009


Author: pag
Date: 2009-02-12 22:51:03 -0800 (Thu, 12 Feb 2009)
New Revision: 1484

Modified:
   trunk/src/jar/content-n3/java/org/mulgara/content/n3/N3ContentHandler.java
Log:
Minor format cleanup

Modified: trunk/src/jar/content-n3/java/org/mulgara/content/n3/N3ContentHandler.java
===================================================================
--- trunk/src/jar/content-n3/java/org/mulgara/content/n3/N3ContentHandler.java	2009-02-12 18:00:02 UTC (rev 1483)
+++ trunk/src/jar/content-n3/java/org/mulgara/content/n3/N3ContentHandler.java	2009-02-13 06:51:03 UTC (rev 1484)
@@ -89,13 +89,10 @@
    * @return <code>true</code> if the file part of the URI has an
    *   <code>.n3</code>, <code>.nt</code> or <code>.rdf</code> extension
    */
-  public boolean canParse(Content content) throws NotModifiedException
-  {
+  public boolean canParse(Content content) throws NotModifiedException {
     // We definitely can parse anything of MIME type application/rdf+xml
     MimeType contentType = content.getContentType();
-    if (contentType != null &&
-        (APPLICATION_N3.match(contentType) || TEXT_RDF_N3.match(contentType)))
-    {
+    if (contentType != null && (APPLICATION_N3.match(contentType) || TEXT_RDF_N3.match(contentType))) {
       return true;
     }
 
@@ -103,8 +100,7 @@
     // We're breaking the WWW architectural principle of URI Opacity by doing
     // so (see http://www.w3.org/TR/webarch/#uri-opacity).
 
-    if (content.getURI() == null)
-    {
+    if (content.getURI() == null) {
       return false;
     }
 




More information about the Mulgara-svn mailing list