Skip to content

v0.1.6

Latest
Compare
Choose a tag to compare
@mercyblitz mercyblitz released this 04 Oct 08:05
ec6cba8

What's Changed

Enhancement

Module microsphere-java-core

  • [Features] Added a new utility method toStringArray(Collection<String>) to StringUtils to convert collections to string arrays safely, with null and empty handling.

  • [Bugfix] Fixed substring calculation in URLUtils.findSubProtocolsString to correctly extract subprotocols.

  • [Reactor] Refactored the split methods in StringUtils to handle null and empty delimiters more robustly, improved signature annotations, and replaced the use of StringTokenizer with 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.java to use static imports for clarity and brevity.

  • [JavaDoc] Updated Javadoc in ClassPathUtils to fix formatting of example usage.

  • [Testing] Expanded and updated tests in StringUtilsTest to cover new and edge cases for the split and toStringArray methods, ensuring correctness and compatibility with Spring's implementation.

  • [Testing] Improved test logic in FileUtilsTest by 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