-
-
Notifications
You must be signed in to change notification settings - Fork 229
Issue#233 XmlMapper.copy() doesn't properly copy internal configurations #234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
package com.fasterxml.jackson.dataformat.xml.ser; | ||
|
||
import java.io.IOException; | ||
|
||
import javax.xml.namespace.QName; | ||
import javax.xml.stream.XMLStreamException; | ||
|
||
import com.fasterxml.jackson.core.*; | ||
import com.fasterxml.jackson.core.JsonGenerator; | ||
import com.fasterxml.jackson.databind.JavaType; | ||
import com.fasterxml.jackson.databind.JsonMappingException; | ||
import com.fasterxml.jackson.databind.JsonSerializer; | ||
import com.fasterxml.jackson.databind.PropertyName; | ||
import com.fasterxml.jackson.databind.SerializationConfig; | ||
import com.fasterxml.jackson.databind.ser.SerializerFactory; | ||
import com.fasterxml.jackson.databind.ser.DefaultSerializerProvider; | ||
import com.fasterxml.jackson.databind.ser.SerializerFactory; | ||
import com.fasterxml.jackson.databind.util.TokenBuffer; | ||
import com.fasterxml.jackson.dataformat.xml.util.StaxUtil; | ||
import com.fasterxml.jackson.dataformat.xml.util.TypeUtil; | ||
import com.fasterxml.jackson.dataformat.xml.util.XmlRootNameLookup; | ||
|
||
import javax.xml.namespace.QName; | ||
import javax.xml.stream.XMLStreamException; | ||
import java.io.IOException; | ||
|
||
/** | ||
* We need to override some parts of | ||
* {@link com.fasterxml.jackson.databind.SerializerProvider} | ||
|
@@ -55,6 +54,11 @@ public XmlSerializerProvider(XmlSerializerProvider src, | |
/********************************************************************** | ||
*/ | ||
|
||
@Override | ||
public DefaultSerializerProvider copy() { | ||
return this; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can add a comment if needed, but I'm doing this because There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A brief comment would be appreciated... however, are you sure this is safe? Keep in mind that it extends |
||
} | ||
|
||
@Override | ||
public DefaultSerializerProvider createInstance(SerializationConfig config, | ||
SerializerFactory jsf) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not reformat code in places where you don't change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry about that, IntelliJ auto-formatted it, I'll revert those