You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by le...@apache.org on 2013/06/20 22:23:53 UTC

svn commit: r1495163 - /nutch/branches/2.x/src/plugin/creativecommons/src/java/org/creativecommons/nutch/CCParseFilter.java

Author: lewismc
Date: Thu Jun 20 20:23:52 2013
New Revision: 1495163

URL: http://svn.apache.org/r1495163
Log:
format CCParseFilter

Modified:
    nutch/branches/2.x/src/plugin/creativecommons/src/java/org/creativecommons/nutch/CCParseFilter.java

Modified: nutch/branches/2.x/src/plugin/creativecommons/src/java/org/creativecommons/nutch/CCParseFilter.java
URL: http://svn.apache.org/viewvc/nutch/branches/2.x/src/plugin/creativecommons/src/java/org/creativecommons/nutch/CCParseFilter.java?rev=1495163&r1=1495162&r2=1495163&view=diff
==============================================================================
--- nutch/branches/2.x/src/plugin/creativecommons/src/java/org/creativecommons/nutch/CCParseFilter.java (original)
+++ nutch/branches/2.x/src/plugin/creativecommons/src/java/org/creativecommons/nutch/CCParseFilter.java Thu Jun 20 20:23:52 2013
@@ -166,28 +166,28 @@ public class CCParseFilter implements Pa
     }
 
     /** Configure a namespace aware XML parser. */
-    private static final DocumentBuilderFactory FACTORY = DocumentBuilderFactory
-        .newInstance();
-      static {
-        FACTORY.setNamespaceAware(true);
-      }
+    private static final DocumentBuilderFactory FACTORY = DocumentBuilderFactory.newInstance();
+      
+    static {
+      FACTORY.setNamespaceAware(true);
+    }
 
-      /** Creative Commons' namespace URI. */
-      private static final String CC_NS = "http://web.resource.org/cc/";
+    /** Creative Commons' namespace URI. */
+    private static final String CC_NS = "http://web.resource.org/cc/";
 
-      /** Dublin Core namespace URI. */
-      private static final String DC_NS = "http://purl.org/dc/elements/1.1/";
+    /** Dublin Core namespace URI. */
+    private static final String DC_NS = "http://purl.org/dc/elements/1.1/";
 
-      /** RDF syntax namespace URI. */
-      private static final String RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+    /** RDF syntax namespace URI. */
+    private static final String RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#";
 
-      private void findRdf(String comment) {
-        // first check for likely RDF in comment
-	int rdfPosition = comment.indexOf("RDF");
-	if (rdfPosition < 0)
-	  return; // no RDF, abort
-	int nsPosition = comment.indexOf(CC_NS);
-	if (nsPosition < 0)
+    private void findRdf(String comment) {
+      // first check for likely RDF in comment
+      int rdfPosition = comment.indexOf("RDF");
+      if (rdfPosition < 0)
+        return; // no RDF, abort
+      int nsPosition = comment.indexOf(CC_NS);
+        if (nsPosition < 0)
 	  return; // no RDF, abort
 	// try to parse the XML
 	Document doc;