mirror of https://github.com/apache/druid.git
Change DefaultObjectMapper to NOT overwrite final fields unless explicitly asked to
This commit is contained in:
parent
379ca87e6a
commit
929b981710
|
@ -123,7 +123,7 @@ public class RabbitMQFirehoseFactory implements FirehoseFactory<StringInputRowPa
|
|||
return config;
|
||||
}
|
||||
|
||||
@JsonProperty
|
||||
@JsonProperty("connection")
|
||||
public JacksonifiedConnectionFactory getConnectionFactory()
|
||||
{
|
||||
return connectionFactory;
|
||||
|
|
|
@ -138,7 +138,7 @@ public class HadoopTuningConfig implements TuningConfig
|
|||
return indexSpec;
|
||||
}
|
||||
|
||||
@JsonProperty
|
||||
@JsonProperty("maxRowsInMemory")
|
||||
public int getRowFlushBoundary()
|
||||
{
|
||||
return rowFlushBoundary;
|
||||
|
|
|
@ -106,7 +106,7 @@ public class MoveTask extends AbstractFixedIntervalTask
|
|||
return TaskStatus.success(getId());
|
||||
}
|
||||
|
||||
@JsonProperty
|
||||
@JsonProperty("target")
|
||||
public Map<String, Object> getTargetLoadSpec()
|
||||
{
|
||||
return targetLoadSpec;
|
||||
|
|
|
@ -53,6 +53,7 @@ public class DefaultObjectMapper extends ObjectMapper
|
|||
configure(MapperFeature.AUTO_DETECT_FIELDS, false);
|
||||
configure(MapperFeature.AUTO_DETECT_IS_GETTERS, false);
|
||||
configure(MapperFeature.AUTO_DETECT_SETTERS, false);
|
||||
configure(MapperFeature.ALLOW_FINAL_FIELDS_AS_MUTATORS, false);
|
||||
configure(SerializationFeature.INDENT_OUTPUT, false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue