Fix [JACKSON-773] for 1.9
diff --git a/release-notes/VERSION b/release-notes/VERSION
index e856e15..9f9a5f5 100644
--- a/release-notes/VERSION
+++ b/release-notes/VERSION
@@ -9,6 +9,8 @@
Fixes:
* [JACKSON-757]: further fixing (1.9.4 had partial fix)
+ * [JACKSON-773]: Bug in SimpleFilterProvider constructor
+ (reported by Kenny M)
------------------------------------------------------------------------
=== History: ===
diff --git a/src/mapper/java/org/codehaus/jackson/map/ser/impl/SimpleFilterProvider.java b/src/mapper/java/org/codehaus/jackson/map/ser/impl/SimpleFilterProvider.java
index 7bf37db..9909a70 100644
--- a/src/mapper/java/org/codehaus/jackson/map/ser/impl/SimpleFilterProvider.java
+++ b/src/mapper/java/org/codehaus/jackson/map/ser/impl/SimpleFilterProvider.java
@@ -39,14 +39,14 @@
*/
public SimpleFilterProvider() {
- _filtersById = new HashMap<String,BeanPropertyFilter>();
+ this(new HashMap<String,BeanPropertyFilter>());
}
/**
* @param mapping Mapping from id to filter; used as is, no copy is made.
*/
public SimpleFilterProvider(Map<String,BeanPropertyFilter> mapping) {
- _filtersById = new HashMap<String,BeanPropertyFilter>();
+ _filtersById = mapping;
}
/**