v0.1.6
What's Changed
Enhancement
Module microsphere-java-core
-
[Features] Added a new utility method
toStringArray(Collection<String>)toStringUtilsto convert collections to string arrays safely, with null and empty handling. -
[Bugfix] Fixed substring calculation in
URLUtils.findSubProtocolsStringto correctly extract subprotocols. -
[Reactor] Refactored the
splitmethods inStringUtilsto handlenulland empty delimiters more robustly, improved signature annotations, and replaced the use ofStringTokenizerwith custom logic for better consistency and predictability. Also added comprehensive Javadoc examples. -
[Reactor] Improved import statements and static import usage for clarity and consistency in several test files.
-
[Reactor] Updated annotation usage in
TestAnnotation.javato use static imports for clarity and brevity. -
[JavaDoc] Updated Javadoc in
ClassPathUtilsto fix formatting of example usage. -
[Testing] Expanded and updated tests in
StringUtilsTestto cover new and edge cases for thesplitandtoStringArraymethods, ensuring correctness and compatibility with Spring's implementation. -
[Testing] Improved test logic in
FileUtilsTestby refactoring exception handling into a separate method and ensuring proper executor shutdown and waiting, increasing reliability of concurrent tests. -
[Testing] Made small test assertion changes and removed unnecessary checks in
ClassDataRepositoryTest.
Project Policy and Build Updates
-
Added a contributor code of conduct to the project, outlining expected behavior and reporting mechanisms.
-
Updated the Maven build workflow to include Java 25 in the test matrix. (.github/workflows/maven-build.yml)
Full Changelog: 0.1.5...0.1.6