File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
src/main/java/org/audit4j/core Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ final static void init() {
162
162
defaultAnnotationTransformer .setSerializer (serializerCommand .getSerializer ());
163
163
}
164
164
annotationTransformer = defaultAnnotationTransformer ;
165
-
165
+
166
166
// Initialize IO streams.
167
167
initStreams ();
168
168
@@ -347,7 +347,9 @@ private static void initHandlers() {
347
347
for (Handler handler : conf .getHandlers ()) {
348
348
try {
349
349
if (!configContext .getHandlers ().contains (handler )) {
350
- handler .setProperties (configContext .getProperties ());
350
+ Map <String , String > handlerproperties = new HashMap <>();
351
+ handlerproperties .putAll (configContext .getProperties ());
352
+ handler .setProperties (handlerproperties );
351
353
handler .init ();
352
354
configContext .addHandler (handler );
353
355
}
Original file line number Diff line number Diff line change 19
19
package org .audit4j .core .handler ;
20
20
21
21
import java .io .Serializable ;
22
+ import java .util .HashMap ;
22
23
import java .util .Map ;
23
24
24
25
import org .audit4j .core .Initializable ;
@@ -85,7 +86,7 @@ public AuditEvent getAuditEvent() {
85
86
* @param auditEvent
86
87
* the new audit event
87
88
*/
88
- public void setAuditEvent (AuditEvent auditEvent ) {
89
+ public void setAuditEvent (final AuditEvent auditEvent ) {
89
90
this .auditEvent = auditEvent ;
90
91
}
91
92
@@ -115,7 +116,7 @@ public String getProperty(String key) {
115
116
* @param properties
116
117
* the properties
117
118
*/
118
- public void setProperties (Map <String , String > properties ) {
119
+ public void setProperties (final Map <String , String > properties ) {
119
120
this .properties = properties ;
120
121
}
121
122
}
You can’t perform that action at this time.
0 commit comments