Repository navigation
BREAKING:
- Java 25 is the minimum, up from 17: the family builds, tests and releases on JDK 25
(astrapi69/mystic-crypt#234), so this release is 10 instead of 9.3 (8ec0895) - four methods of
StringExtensionshandle a string without their delimiter, where each threw a
StringIndexOutOfBoundsException:getAttributNameandgetStringBeforeUnderscorereturn it as it is, as
readLinereturns a string without a line break;getIndexandgetItemNumberthrow an
IllegalArgumentExceptionthat names the string when it holds no pair of brackets, and end the index at the
first closing bracket after its opening one, sogetIndex("a]x[1]")is1. Migration: code that caught the
StringIndexOutOfBoundsException(or anIndexOutOfBoundsException) catches theIllegalArgumentExceptionof
getIndexandgetItemNumber, and no longer gets an exception from the other two (#46)
ADDED:
- a test of
StringExtensionsfor the Unicode conversion of the em dash, U+2014 (95d7b38)
CHANGED:
- the Gradle wrapper is 9.8.2, up from 8.10.2, and every dependency and plugin is on its latest release (95d7b38,
8ec0895), commons-lang3 among them, which dfcdc3c raised from 3.17.0 to 3.18.0 and 8ec0895 to 3.21.0 - the workflows build on exactly the JDK
.sdkmanrcnames, Temurin 25.0.4+7, and check that they do; they set up
JDK 17 while the toolchain fetched 25 (#12) - the grgit and hierynomus license plugins are gone:
tagReleaseruns git itself (gradle/tagging.gradle), and
Spotless writes the MIT header fromsrc/main/resources/license-header.txt, which 11 of the 13 Java files besides
package-info carried and the 2 test classesCaseExtensionsTestandCaseExtensionsParameterizedTestnow carry
as well. The two plugins brought the oldspring-coreandplexus-utilsof the 11 Dependabot alerts on the
build classpath; none of them was at runtime (#12) - a test class that leaves no result fails the build (#10)
- releases go to Maven Central through the Central Portal: the nmcp settings plugin uploads,
USER_MANAGED, from
publish.ymlon aRELEASE-*tag, signed by the release subkey; a release without a key, an upload from a local
tree and a release from a branch are refused. OSSRH, which Sonatype shut down in June 2025, its repository and
its credentials are gone, and snapshots resolve from the Central Portal's snapshot repository (#13) - a build of the same commit gives the same bytes: the manifest no longer carries the build time, the operating
system and the JDK's patch level (Build-Jdk-Spec: 25in their place);javac --release 25keeps the patch
level out ofmodule-info.class; every archive has fixed entry times and a fixed entry order; the javadoc is
written in English whatever the locale of the machine; and the local Maven repository is used only with
-PuseMavenLocal, since it came before Maven Central.scripts/check-reproducible.shbuilds the five published
artifacts twice and compares them (#14) - mutation testing with PIT: the CI build fails below 96% of the mutants detected and publishes the score as a
badge; PIT detects 198 of the 202 mutants of 10, 98%, where a first run detected 160 of 185, and the 4
left are equivalent, asbuild.gradlesays. The build also fails below 99% of the lines or 98% of the branches;
the tests of 10 reach 338 of 339 lines and 156 of 157 branches. The tests the survivors showed to be missing
check, among others, the parts ofgetTripleFromMessage, which its test only printed; they found #20 to #24.
The other defects under FIXED came up while correcting a Javadoc (#31, #32), while writing the README (#39) and
in a review of the release (#44, #45, #50, and #46 under BREAKING) (#15) - a
Makefilefor the usual tasks, after the one of astrapi69/silly-io:make helplists them; no target uploads,
tag-releaserefuses a SNAPSHOT version and asks forCONFIRM=yes, andcheck-reproducibleruns
scripts/check-reproducible.shon the JDK.sdkmanrcnames (#36) - mutation testing runs on GitHub in a workflow of its own,
mutation-testing.yml, on push and pull request and by
hand for any branch: it fails below the floor, keeps the PIT report as an artifact, lists the mutants left in the
summary of the run and publishes the badge.gradle.ymlbuilds and tests without it, andmake piteststarts the
workflow instead of running PIT on the workstation, where its minions, without a bound on their heap, took the
memory of the machine when a mutant made a loop endless. The minions get 256 MB each and the test JVM 512 MB, so
such a mutant or test ends in anOutOfMemoryErrorof its own JVM (#59) ReadmeExamplesTestkeeps the white space inside string and character literals when it compares the README
with its blocks, reads a CRLF checkout, and runs again when its own source changes; a test checks every hex digit
of atoUnicodeCharsescape for the case asked for (#51)- the build uses no syntax Gradle 10 removes, applies the versions plugin by its new id and calls Spotless's
leadingTabsToSpaces, so it prints none of their deprecations;publish.ymlreads the repository only; and the
IDE run configuration oflicenseFormat, which went with the license plugin, is gone (#52) - the README and the CHANGELOG say nothing the code contradicts: how
toUnicodeCharsescapes, when
MalformedUnicodeExceptioncomes, the example ofSILLY_STRINGS, the Simplified Semantic Versioning and the
numbers of 10 (#53) versionCatalogFormatkeeps the versions of PIT and of its JUnit 5 plugin, which only
gradle/mutation-testing.gradlereads and which it removed; silly-bean stays a runtime dependency, though no
class uses it, since silly-collection'sMapFactorytakes and returns itsKeyValuePairwithout declaring it
for compiling against (astrapi69/silly-collection#95, #38)- the README says what silly-strings is and when not to use it, its requirements, the installation with concrete
versions, a quick start whose examplesReadmeExamplesTestruns and compares with the README, the classes, the
quality numbers, how to verify the release signatures and how a release is made; it had two sections "Support
this project", one linking an anchor that did not exist, a coverage badge of coveralls while CI reports to
codecov, and a PayPal button other than the one.github/FUNDING.ymlnames (#41) - the Gradle dependency graph is submitted to GitHub, for Dependabot (#1)
- the README replaces its dead badges and links (#8), names the family's funding channels and no cryptocurrency
addresses (#6), and/gradleis committed, no longer ignored (#4)
FIXED:
StringExtensions.readLinereturns a string without a line break as it is, the one line it holds, where it threw
aStringIndexOutOfBoundsException(#20)StringExtensions.replaceAllreturns for an empty search string: it replaces asString.replace(CharSequence, CharSequence)does, which it now calls, and puts the replacement before every character and at the end. Its own
loop found the empty string at the same index on every turn and grew until the heap was gone (#21)StringExtensions.splitByFixedLengthrefuses a length below 1 with anIllegalArgumentExceptionthat names it:
for 0 it added empty parts until the heap was gone, below 0 it threw aStringIndexOutOfBoundsException(#22)CharsetExtensions.getCharsetgives an empty result for a name that is not a legal charset name, such as"",
as its Javadoc says for a charset that is not found, where it threw anIllegalCharsetNameException. For
astrapi69/file-worker,StoreFileExtensions.toFilewith such an encoding writes in the default charset, as for an
unknown one (#23)StringExtensions.convertUnicodeStringToCharacterthrows itsMalformedUnicodeExceptionfor a unicode escape with
fewer than four hex digits, a backslash at the end and an empty string, as for a non-hex digit, where it threw a
StringIndexOutOfBoundsException; the Javadoc names it (#24)- the Javadoc of
StringExtensions.toUnicodeCharssays what the method does, the escaping of a value in a
properties file asProperties.store(OutputStream, String)writes it, with unicode escapes for what is not
printable ASCII; it said that every character becomes a unicode escape, which is whattoUnicodedoes (#25, #44) StringExtensions.toUnicodeCharswithtoLowerCasewrites the hex digits of the unicode escapes in lower case
and leaves the text as it is, as its Javadoc says; it lowercased the whole result, so"ABCÄ"became
"abc\u00c4"instead of"ABC\u00c4"(#31)StringExtensions.toUnicodewrites a character outside the Basic Multilingual Plane as the escapes of its two
UTF-16 code units,\uD83D\uDE00for U+1F600; it wrote\uF600\uDE00, the last four hex digits of the code
point in place of the high surrogate (#32)CaseExtensions.kebabToCamelCasegives camelCase, as its name and Javadoc say:silly-strings-versionbecomes
sillyStringsVersion, where it gave the PascalCaseSillyStringsVersion(#39). It splits at hyphens only, as in
9.2:foo barstaysfoo bar(#50)- the conversions that change the case of an identifier or a field name do so in the root locale, not in the
default one:kebabToCamelCase,kebabToUpperSnakeCaseandsnakeToPascalCaseofCaseExtensions, and
firstCharacterToUpperCase,firstCharacterToLowerCaseandlastCharacterToUpperCaseofStringExtensions.
Under a Turkish localekebabToCamelCase("ID-number")gaveıdNumberandkebabToUpperSnakeCase("silly-strings")
gaveSİLLY_STRİNGS(#45)