8061686: Size limits in BufferAllocator should have been final
Reviewed-by: lancea, chegar
--- 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;