Author: hboutemy Date: Tue Nov 19 23:41:27 2013 New Revision: 1543648 URL: http://svn.apache.org/r1543648 Log: code formatting
Modified: maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/macro/snippet/SnippetReader.java Modified: maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/macro/snippet/SnippetReader.java URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/macro/snippet/SnippetReader.java?rev=1543648&r1=1543647&r2=1543648&view=diff ============================================================================== --- maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/macro/snippet/SnippetReader.java (original) +++ maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/macro/snippet/SnippetReader.java Tue Nov 19 23:41:27 2013 @@ -125,10 +125,14 @@ public class SnippetReader throws IOException { BufferedReader reader; - if ( encoding == null || "".equals(encoding) ) + if ( encoding == null || "".equals( encoding ) ) + { reader = new BufferedReader( new InputStreamReader( source.openStream() ) ); + } else + { reader = new BufferedReader( new InputStreamReader( source.openStream(), encoding ) ); + } List<String> lines = new ArrayList<String>(); try