maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ltheu...@apache.org
Subject svn commit: r1104023 - in /maven/sandbox/trunk/doxia/doxia-module-markdown/src: main/java/org/apache/maven/doxia/module/markdown/ test/java/org/apache/maven/doxia/module/markdown/
Date Tue, 17 May 2011 06:54:06 GMT
Author: ltheussl
Date: Tue May 17 06:54:05 2011
New Revision: 1104023

URL: http://svn.apache.org/viewvc?rev=1104023&view=rev
Log:
formatting, no code change

Modified:
    maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParseException.java
    maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParser.java
    maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSink.java
    maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSinkFactory.java
    maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSiteModule.java
    maven/sandbox/trunk/doxia/doxia-module-markdown/src/test/java/org/apache/maven/doxia/module/markdown/MarkdownParserTest.java

Modified: maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParseException.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParseException.java?rev=1104023&r1=1104022&r2=1104023&view=diff
==============================================================================
--- maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParseException.java
(original)
+++ maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParseException.java
Tue May 17 06:54:05 2011
@@ -27,9 +27,12 @@ import org.apache.maven.doxia.parser.Par
  * @author Julien Nicoulaud <julien.nicoulaud@gmail.com>
  * @since 1.3
  */
-public class MarkdownParseException extends ParseException
+public class MarkdownParseException
+    extends ParseException
 {
 
+    private static final long serialVersionUID = 1L;
+
     /**
      * Build a new instance of {@link MarkdownParseException} with the specified detail message
and cause.
      * <br/>
@@ -40,8 +43,8 @@ public class MarkdownParseException exte
      * @param e       the cause. This can be retrieved later by the <code>Throwable.getCause()</code>
method.
      *                (A null value is permitted, and indicates that the cause is nonexistent
or unknown.)
      */
-    public MarkdownParseException(String message, Exception e)
+    public MarkdownParseException( String message, Exception e )
     {
-        super(message, e);
+        super( message, e );
     }
 }

Modified: maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParser.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParser.java?rev=1104023&r1=1104022&r2=1104023&view=diff
==============================================================================
--- maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParser.java
(original)
+++ maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParser.java
Tue May 17 06:54:05 2011
@@ -19,15 +19,17 @@ package org.apache.maven.doxia.module.ma
  * under the License.
  */
 
+import java.io.IOException;
+import java.io.Reader;
+
 import org.apache.maven.doxia.parser.AbstractTextParser;
 import org.apache.maven.doxia.sink.Sink;
+
 import org.codehaus.plexus.util.IOUtil;
+
 import org.pegdown.Extensions;
 import org.pegdown.PegDownProcessor;
 
-import java.io.IOException;
-import java.io.Reader;
-
 /**
  * Implementation of {@link org.apache.maven.doxia.parser.Parser} for Markdown documents.
  * <p/>
@@ -37,7 +39,8 @@ import java.io.Reader;
  * @plexus.component role="org.apache.maven.doxia.parser.Parser" role-hint="markdown"
  * @since 1.3
  */
-public class MarkdownParser extends AbstractTextParser
+public class MarkdownParser
+    extends AbstractTextParser
 {
 
     /**
@@ -48,20 +51,22 @@ public class MarkdownParser extends Abst
     /**
      * The {@link PegDownProcessor} used to convert Pegdown documents to HTML.
      */
-    protected static final PegDownProcessor PEGDOWN_PROCESSOR = new PegDownProcessor(Extensions.ALL
& ~Extensions.HARDWRAPS);
+    protected static final PegDownProcessor PEGDOWN_PROCESSOR =
+        new PegDownProcessor( Extensions.ALL & ~Extensions.HARDWRAPS );
 
     /**
      * {@inheritDoc}
      */
-    public void parse(Reader reader, Sink sink) throws MarkdownParseException
+    public void parse( Reader reader, Sink sink )
+        throws MarkdownParseException
     {
         try
         {
-            sink.rawText(PEGDOWN_PROCESSOR.markdownToHtml(IOUtil.toString(reader)));
+            sink.rawText( PEGDOWN_PROCESSOR.markdownToHtml( IOUtil.toString( reader ) ) );
         }
-        catch (IOException e)
+        catch ( IOException e )
         {
-            throw new MarkdownParseException("Failed reading Markdown source document", e);
+            throw new MarkdownParseException( "Failed reading Markdown source document",
e );
         }
     }
 }

Modified: maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSink.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSink.java?rev=1104023&r1=1104022&r2=1104023&view=diff
==============================================================================
--- maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSink.java
(original)
+++ maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSink.java
Tue May 17 06:54:05 2011
@@ -27,6 +27,7 @@ import org.apache.maven.doxia.sink.Abstr
  * @author Julien Nicoulaud <julien.nicoulaud@gmail.com>
  * @since 1.3
  */
-public class MarkdownSink extends AbstractTextSink
+public class MarkdownSink
+    extends AbstractTextSink
 {
 }

Modified: maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSinkFactory.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSinkFactory.java?rev=1104023&r1=1104022&r2=1104023&view=diff
==============================================================================
--- maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSinkFactory.java
(original)
+++ maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSinkFactory.java
Tue May 17 06:54:05 2011
@@ -19,11 +19,11 @@ package org.apache.maven.doxia.module.ma
  * under the License.
  */
 
+import java.io.Writer;
+
 import org.apache.maven.doxia.sink.AbstractTextSinkFactory;
 import org.apache.maven.doxia.sink.Sink;
 
-import java.io.Writer;
-
 /**
  * {@link org.apache.maven.doxia.sink.SinkFactory} for {@link MarkdownSink}.
  *
@@ -31,14 +31,15 @@ import java.io.Writer;
  * @plexus.component role="org.apache.maven.doxia.sink.SinkFactory" role-hint="markdown"
  * @since 1.3
  */
-public class MarkdownSinkFactory extends AbstractTextSinkFactory
+public class MarkdownSinkFactory
+    extends AbstractTextSinkFactory
 {
 
     /**
      * {@inheritDoc}
      */
     @Override
-    protected Sink createSink(Writer writer, String encoding)
+    protected Sink createSink( Writer writer, String encoding )
     {
         return new MarkdownSink();
     }

Modified: maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSiteModule.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSiteModule.java?rev=1104023&r1=1104022&r2=1104023&view=diff
==============================================================================
--- maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSiteModule.java
(original)
+++ maven/sandbox/trunk/doxia/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownSiteModule.java
Tue May 17 06:54:05 2011
@@ -28,7 +28,8 @@ import org.apache.maven.doxia.module.sit
  * @plexus.component role="org.apache.maven.doxia.module.site.SiteModule" role-hint="markdown"
  * @since 1.3
  */
-public class MarkdownSiteModule extends AbstractSiteModule
+public class MarkdownSiteModule
+    extends AbstractSiteModule
 {
 
     /**
@@ -46,6 +47,6 @@ public class MarkdownSiteModule extends 
      */
     public MarkdownSiteModule()
     {
-        super(SOURCE_DIRECTORY, FILE_EXTENSION, MarkdownParser.ROLE_HINT);
+        super( SOURCE_DIRECTORY, FILE_EXTENSION, MarkdownParser.ROLE_HINT );
     }
 }

Modified: maven/sandbox/trunk/doxia/doxia-module-markdown/src/test/java/org/apache/maven/doxia/module/markdown/MarkdownParserTest.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/doxia/doxia-module-markdown/src/test/java/org/apache/maven/doxia/module/markdown/MarkdownParserTest.java?rev=1104023&r1=1104022&r2=1104023&view=diff
==============================================================================
--- maven/sandbox/trunk/doxia/doxia-module-markdown/src/test/java/org/apache/maven/doxia/module/markdown/MarkdownParserTest.java
(original)
+++ maven/sandbox/trunk/doxia/doxia-module-markdown/src/test/java/org/apache/maven/doxia/module/markdown/MarkdownParserTest.java
Tue May 17 06:54:05 2011
@@ -28,7 +28,8 @@ import org.apache.maven.doxia.parser.Par
  * @author Julien Nicoulaud <julien.nicoulaud@gmail.com>
  * @since 1.3
  */
-public class MarkdownParserTest extends AbstractParserTest
+public class MarkdownParserTest
+    extends AbstractParserTest
 {
 
     /**
@@ -43,7 +44,7 @@ public class MarkdownParserTest extends 
     protected void setUp() throws Exception
     {
         super.setUp();
-        parser = (MarkdownParser) lookup(Parser.ROLE, MarkdownParser.ROLE_HINT);
+        parser = (MarkdownParser) lookup( Parser.ROLE, MarkdownParser.ROLE_HINT );
     }
 
     /**



Mime
View raw message