Skip to content

Commit 8f49fb7

Browse files
committed
Minor clean up
1 parent 25d57bf commit 8f49fb7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/tools/jackson/databind/deser/bean/BeanDeserializerBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ public void resolve(DeserializationContext ctxt)
551551
unwrapped = new UnwrappedPropertyHandler();
552552
}
553553

554-
if (prop instanceof CreatorProperty) {
554+
if (prop.isCreatorProperty()) {
555555
unwrapped.addCreatorProperty(prop);
556556
} else {
557557
unwrapped.addProperty(prop);

src/main/java/tools/jackson/databind/deser/bean/PropertyValueBuffer.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import tools.jackson.core.JsonParser;
99

1010
import tools.jackson.databind.*;
11-
import tools.jackson.databind.deser.CreatorProperty;
1211
import tools.jackson.databind.deser.ReadableObjectId;
1312
import tools.jackson.databind.deser.SettableAnyProperty;
1413
import tools.jackson.databind.deser.SettableBeanProperty;
@@ -370,7 +369,7 @@ public Object handleIdValue(final DeserializationContext ctxt, Object bean) thro
370369
SettableBeanProperty idProp = _objectIdReader.idProperty;
371370
if (idProp != null) {
372371
// [databind#5328] Records/Creators do not have setters, skip
373-
if (idProp instanceof CreatorProperty) {
372+
if (idProp.isCreatorProperty()) {
374373
return bean;
375374
}
376375
return idProp.setAndReturn(ctxt, bean, _idValue);

0 commit comments

Comments
 (0)