Make fields final. Patch by sebb.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@881600
13f79535-47bb-0310-9956-
ffa450edef68
public class BufferPool {
protected static final Log log = LogFactory.getLog(BufferPool.class);
- public static int DEFAULT_POOL_SIZE = 100*1024*1024; //100MB
+ public static final int DEFAULT_POOL_SIZE = 100*1024*1024; //100MB
* @author Kin-man Chung
*/
public class ServletWriter {
- public static int TAB_WIDTH = 2;
- public static String SPACES = " ";
+ public static final int TAB_WIDTH = 2;
+ public static final String SPACES = " ";
// Current indent level:
private int indent = 0;
// Defaults - all of them are "well-known" types,
// you can add using normal web.xml.
- public static Hashtable<String,String> defaultMap =
+ public static final Hashtable<String,String> defaultMap =
new Hashtable<String,String>(101);
static {
defaultMap.put("txt", "text/plain");