Skip to content

Commit e72a526

Browse files
committed
Minor stylistic changes
1 parent 07ec2e4 commit e72a526

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

src/main/java/com/fasterxml/jackson/databind/DeserializationConfig.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,16 @@ protected DeserializationConfig(DeserializationConfig src,
148148
public DeserializationConfig(BaseSettings base,
149149
SubtypeResolver str, SimpleMixInResolver mixins, RootNameLookup rootNames,
150150
ConfigOverrides configOverrides) {
151-
this(base, str, mixins, rootNames, configOverrides, new CoercionConfigs());
151+
this(base, str, mixins, rootNames, configOverrides,
152+
new CoercionConfigs());
152153
}
153154

154155
@Deprecated // since 2.11.2, remove from 2.13 or later
155156
protected DeserializationConfig(DeserializationConfig src,
156157
SimpleMixInResolver mixins, RootNameLookup rootNames,
157158
ConfigOverrides configOverrides) {
158-
this(src, src._subtypeResolver, mixins, rootNames, configOverrides, new CoercionConfigs());
159+
this(src, src._subtypeResolver, mixins, rootNames, configOverrides,
160+
new CoercionConfigs());
159161
}
160162

161163
/*

src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,9 @@ public ValueInstantiator _valueInstantiatorInstance(DeserializationConfig config
364364

365365
protected void _addDeserializerConstructors(DeserializationContext ctxt,
366366
BeanDescription beanDesc, VisibilityChecker<?> vchecker,
367-
AnnotationIntrospector intr, CreatorCollector creators,
368-
Map<AnnotatedWithParams,BeanPropertyDefinition[]> creatorParams)
369-
throws JsonMappingException
367+
AnnotationIntrospector intr, CreatorCollector creators,
368+
Map<AnnotatedWithParams,BeanPropertyDefinition[]> creatorParams)
369+
throws JsonMappingException
370370
{
371371
// 25-Jan-2017, tatu: As per [databind#1501], [databind#1502], [databind#1503], best
372372
// for now to skip attempts at using anything but no-args constructor (see

src/main/java/com/fasterxml/jackson/databind/jsontype/impl/AsDeductionTypeDeserializer.java

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ public Object deserializeTypedFromObject(JsonParser p, DeserializationContext ct
107107
List<BitSet> candidates = new LinkedList<>(subtypeFingerprints.keySet());
108108

109109
// Record processed tokens as we must rewind once after deducing the deserializer to use
110+
@SuppressWarnings("resource")
110111
TokenBuffer tb = new TokenBuffer(p, ctxt);
111112
boolean ignoreCase = ctxt.isEnabled(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES);
112113

src/test/java/com/fasterxml/jackson/databind/deser/creators/SingleArgCreatorTest.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@ static class SingleNamedButStillDelegating {
2626
protected final String value;
2727

2828
@JsonCreator(mode=JsonCreator.Mode.DELEGATING)
29-
public SingleNamedButStillDelegating(@JsonProperty("foobar") String v){
29+
public SingleNamedButStillDelegating(@JsonProperty("foobar") String v) {
3030
value = v;
3131
}
3232

3333
public String getFoobar() { return "x"; }
3434
}
3535

36-
// [databind#557]
37-
36+
// For [databind#557]
3837
static class StringyBean
3938
{
4039
public final String value;

0 commit comments

Comments
 (0)