8061686: Size limits in BufferAllocator should have been final
authorjoehw
Tue, 21 Oct 2014 13:17:32 -0700
changeset 27218 ea33bbaac83b
parent 27217 07407127be33
child 27219 c4918033790e
8061686: Size limits in BufferAllocator should have been final Reviewed-by: lancea, chegar
jaxp/src/java.xml/share/classes/com/sun/xml/internal/stream/util/BufferAllocator.java
--- a/jaxp/src/java.xml/share/classes/com/sun/xml/internal/stream/util/BufferAllocator.java	Thu Oct 16 16:03:16 2014 -0700
+++ b/jaxp/src/java.xml/share/classes/com/sun/xml/internal/stream/util/BufferAllocator.java	Tue Oct 21 13:17:32 2014 -0700
@@ -35,9 +35,9 @@
  * @author Santiago.PericasGeertsen@sun.com
  */
 public class BufferAllocator {
-    public static int SMALL_SIZE_LIMIT = 128;
-    public static int MEDIUM_SIZE_LIMIT = 2048;
-    public static int LARGE_SIZE_LIMIT = 8192;
+    private static final int SMALL_SIZE_LIMIT = 128;
+    private static final int MEDIUM_SIZE_LIMIT = 2048;
+    private static final int LARGE_SIZE_LIMIT = 8192;
 
     char[] smallCharBuffer;
     char[] mediumCharBuffer;