We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2311bf commit 8e9da38Copy full SHA for 8e9da38
src/main/java/com/fasterxml/jackson/databind/ser/BeanPropertyWriter.java
@@ -356,7 +356,16 @@ public BeanPropertyWriter rename(NameTransformer transformer) {
356
if (newName.equals(_name.toString())) {
357
return this;
358
}
359
- return new BeanPropertyWriter(this, PropertyName.construct(newName));
+ return _new(PropertyName.construct(newName));
360
+ }
361
+
362
+ /**
363
+ * Overridable factory method used by sub-classes
364
+ *
365
+ * @since 2.6.0
366
+ */
367
+ protected BeanPropertyWriter _new(PropertyName newName) {
368
+ return new BeanPropertyWriter(this, newName);
369
370
371
/**
0 commit comments