v0.1.5
What's Changed
Enhancement
Module microsphere-java-core
- [JSON] Added a comprehensive
escapemethod inJSONUtilsto properly escape JSON strings, including control characters and special Unicode characters (\u2028,\u2029), and updated all relevant usages to use this method for safer JSON output. [1] [2] [3] - [JSON] Removed unused logger imports and related code from
JSONUtilsfor simplification. [1] [2] [3] - [Collection] Improved the
addAllmethod inCollectionUtilsby renaming parameters for clarity and adding a new overload that supports adding all elements from anIterable, not just arrays. [1] [2] - [Collection] Added a new
ArrayStackclass, a non-thread-safe stack implementation based onArrayList, providing standard stack operations (push,pop,peek,empty, andsearch). - [Reflection] Added new static imports and constants to
MethodUtils, including a new property name for banning methods via system properties, and improved documentation and usage examples for this feature. [1] [2] [3] [4]
Module microsphere-annotation-processor
- [Metadata] Enhanced the description resolution in
ConfigurationPropertyJSONElementVisitorto fall back to the JavaDoc comment if the annotation's description attribute is blank. [1] [2] [3] - [Metadata] Added
MethodUtilsto the test classpath for annotation processor tests. [1] [2]
Full Changelog: 0.1.4...0.1.5