yoavs 2004/12/14 12:27:12
Modified: docs HISTORY.txt
src/java/org/apache/log4j/pattern PatternParser.java
src/java/org/apache/log4j/rolling
TimeBasedRollingPolicy.java
Log:
Changed converter register accessors to take/return Map instead of HashMap.
Minor JavaDoc fix to PatternParser.
Revision Changes Path
1.15 +3 -0 logging-log4j/docs/HISTORY.txt
Index: HISTORY.txt
===================================================================
RCS file: /home/cvs/logging-log4j/docs/HISTORY.txt,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- HISTORY.txt 14 Dec 2004 18:57:10 -0000 1.14
+++ HISTORY.txt 14 Dec 2004 20:27:12 -0000 1.15
@@ -36,6 +36,9 @@
- Fixed Bugzilla 17377: wrong trimming of pattern when left-aligned. [*]
+ - Changed converter register accessors in PatternParser to take/return Map
instead
+ of HashMap, a cleaner abstraction allowing for different implementation
types. [*]
+
November 25, 2004
- Release of version 1.3alpha-3
1.17 +5 -4
logging-log4j/src/java/org/apache/log4j/pattern/PatternParser.java
Index: PatternParser.java
===================================================================
RCS file:
/home/cvs/logging-log4j/src/java/org/apache/log4j/pattern/PatternParser.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- PatternParser.java 20 Nov 2004 12:47:06 -0000 1.16
+++ PatternParser.java 14 Dec 2004 20:27:12 -0000 1.17
@@ -20,6 +20,7 @@
import org.apache.log4j.helpers.OptionConverter;
import java.util.HashMap;
+import java.util.Map;
// Contributors: Nelson Minar <([EMAIL PROTECTED]>
@@ -48,7 +49,7 @@
private static final int MIN_STATE = 4;
private static final int MAX_STATE = 5;
- static HashMap globalRulesRegistry;
+ static Map globalRulesRegistry;
static {
// We set the global rules in the static initializer of PatternParser
class
@@ -116,7 +117,7 @@
* key: the conversion word (as String)
* value: the pattern converter class (as String)
*/
- HashMap converterRegistry;
+ Map converterRegistry;
private Logger logger = Logger.getLogger(PatternParser.class);
@@ -388,14 +389,14 @@
/**
* Returns the converter registry for this PatternParser instance.
*/
- public HashMap getConverterRegistry() {
+ public Map getConverterRegistry() {
return converterRegistry;
}
/**
* Set the converter registry for this PatternParser instance.
*/
- public void setConverterRegistry(HashMap converterRegistry) {
+ public void setConverterRegistry(Map converterRegistry) {
this.converterRegistry = converterRegistry;
}
}
1.16 +1 -1
logging-log4j/src/java/org/apache/log4j/rolling/TimeBasedRollingPolicy.java
Index: TimeBasedRollingPolicy.java
===================================================================
RCS file:
/home/cvs/logging-log4j/src/java/org/apache/log4j/rolling/TimeBasedRollingPolicy.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- TimeBasedRollingPolicy.java 8 Dec 2004 21:21:32 -0000 1.15
+++ TimeBasedRollingPolicy.java 14 Dec 2004 20:27:12 -0000 1.16
@@ -28,7 +28,7 @@
/**
- * <code>TimeBasedRollingPolicy</code> is both easy to configure yet quite
+ * <code>TimeBasedRollingPolicy</code> is both easy to configure and quite
* powerful.
*
* <p>In order to use <code>TimeBasedRollingPolicy</code>, the
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]