Author: oheger
Date: Wed Aug 17 20:01:14 2011
New Revision: 1158887

URL: http://svn.apache.org/viewvc?rev=1158887&view=rev
Log:
Checkstyle

Modified:
    
commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/PropertiesConfiguration.java

Modified: 
commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/PropertiesConfiguration.java
URL: 
http://svn.apache.org/viewvc/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/PropertiesConfiguration.java?rev=1158887&r1=1158886&r2=1158887&view=diff
==============================================================================
--- 
commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/PropertiesConfiguration.java
 (original)
+++ 
commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/PropertiesConfiguration.java
 Wed Aug 17 20:01:14 2011
@@ -961,6 +961,9 @@ public class PropertiesConfiguration ext
      */
     public static class PropertiesWriter extends FilterWriter
     {
+        /** Constant for the initial size when creating a string buffer. */
+        private static final int BUF_SIZE = 8;
+
         /** The delimiter for multi-valued properties.*/
         private char delimiter;
 
@@ -1193,8 +1196,9 @@ public class PropertiesConfiguration ext
          * Performs the escaping of backslashes in the specified properties
          * value. Because a double backslash is used to escape the escape
          * character of a list delimiter, double backslashes also have to be
-         * escaped if the property is part of a (single line) list. Then, in 
all cases each backslash has to be doubled in order to produce a
-         * valid properties file.
+         * escaped if the property is part of a (single line) list. Then, in 
all
+         * cases each backslash has to be doubled in order to produce a valid
+         * properties file.
          *
          * @param value the value to be escaped
          * @param inList a flag whether the value is part of a list
@@ -1207,7 +1211,7 @@ public class PropertiesConfiguration ext
             if (inList && strValue.indexOf(DOUBLE_ESC) >= 0)
             {
                 char esc = ESCAPE.charAt(0);
-                StringBuffer buf = new StringBuffer(strValue.length() + 8);
+                StringBuffer buf = new StringBuffer(strValue.length() + 
BUF_SIZE);
                 for (int i = 0; i < strValue.length(); i++)
                 {
                     if (strValue.charAt(i) == esc && i < strValue.length() - 1
@@ -1322,7 +1326,7 @@ public class PropertiesConfiguration ext
      *
      * @since 1.7
      */
-    public static interface IOFactory
+    public interface IOFactory
     {
         /**
          * Creates a <code>PropertiesReader</code> for reading a properties


Reply via email to