maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r800784 - /maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/SiteRenderingContext.java
Date Tue, 04 Aug 2009 13:45:20 GMT
Author: vsiveton
Date: Tue Aug  4 13:45:19 2009
New Revision: 800784

URL: http://svn.apache.org/viewvc?rev=800784&view=rev
Log:
o using Reader/WriterFactory#UTF_8 instead of static field

Modified:
    maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/SiteRenderingContext.java

Modified: maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/SiteRenderingContext.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/SiteRenderingContext.java?rev=800784&r1=800783&r2=800784&view=diff
==============================================================================
--- maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/SiteRenderingContext.java
(original)
+++ maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/java/org/apache/maven/doxia/siterenderer/SiteRenderingContext.java
Tue Aug  4 13:45:19 2009
@@ -27,6 +27,8 @@
 import java.util.Map;
 
 import org.apache.maven.doxia.site.decoration.DecorationModel;
+import org.codehaus.plexus.util.ReaderFactory;
+import org.codehaus.plexus.util.WriterFactory;
 
 /**
  * <p>SiteRenderingContext class.</p>
@@ -36,13 +38,9 @@
  */
 public class SiteRenderingContext
 {
-    private static final String DEFAULT_INPUT_ENCODING = "UTF-8";
+    private String inputEncoding = ReaderFactory.UTF_8;
 
-    private static final String DEFAULT_OUTPUT_ENCODING = "UTF-8";
-
-    private String inputEncoding = DEFAULT_INPUT_ENCODING;
-
-    private String outputEncoding = DEFAULT_OUTPUT_ENCODING;
+    private String outputEncoding = WriterFactory.UTF_8;
 
     private String templateName;
 



Mime
View raw message