Fix the conversion problem of float type in ConfigInitializer. (#6974)
This commit is contained in:
parent
bb590daba9
commit
104f398b5b
|
|
@ -27,6 +27,7 @@ Release Notes.
|
|||
* Add `okhttp-4.x` plugin.
|
||||
* Fix NPE when thrift field is nested in plugin `thrift`
|
||||
* Fix possible NullPointerException in agent's ES plugin.
|
||||
* Fix the conversion problem of float type in ConfigInitializer.
|
||||
|
||||
#### OAP-Backend
|
||||
* BugFix: filter invalid Envoy access logs whose socket address is empty.
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ public class ConfigInitializer {
|
|||
} else if (boolean.class.equals(type) || Boolean.class.equals(type)) {
|
||||
result = Boolean.valueOf(value);
|
||||
} else if (float.class.equals(type) || Float.class.equals(type)) {
|
||||
result = Boolean.valueOf(value);
|
||||
result = Float.valueOf(value);
|
||||
} else if (double.class.equals(type) || Double.class.equals(type)) {
|
||||
result = Double.valueOf(value);
|
||||
} else if (List.class.equals(type)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue