Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.5.1
-
None
-
None
-
None
Description
Optimize the String implementation, we can provide property builder for it, then can use it in CarbonCommonConstant to replace current String implementation.
class Property<T> { String name; T value; T default; String doc; boolean dynamicConfigurable; static PropertyBuilder<String> buildStringProperty() {…} }
For example
public static final Property CARBON_BAD_RECORDS_ACTION = Property.buildStringProperty(). .name(“carbon.bad.records.action”) .default(“FAIL”) .doc(“keep the same description as .md file”) .dynamic(true) .build()