donaldp 02/01/11 15:35:06
Modified: src/java/org/apache/avalon/framework/logger
AvalonFormatter.java
Log:
Extract magic number into a CONSTANT
----------------------------------------------------------------------
Revision Changes Path
1.10 +7 -1
jakarta-avalon/src/java/org/apache/avalon/framework/logger/AvalonFormatter.java
Index: AvalonFormatter.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon/src/java/org/apache/avalon/framework/logger/AvalonFormatter.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- AvalonFormatter.java 11 Jan 2002 23:33:30 -0000 1.9
+++ AvalonFormatter.java 11 Jan 2002 23:35:06 -0000 1.10
@@ -21,6 +21,12 @@
public class AvalonFormatter
extends PatternFormatter
{
+ /**
+ * The constant defining the default stack depth when
+ * none other is specified.
+ */
+ private static final int DEFAULT_STACK_DEPTH = 8;
+
//The depth to which stacktraces are printed out
private final int m_stackDepth;
@@ -30,7 +36,7 @@
*/
public AvalonFormatter( final String pattern )
{
- this( pattern, 8 );
+ this( pattern, DEFAULT_STACK_DEPTH );
}
/**
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>