Download Latest Version 0.13.0 source code.tar.gz (615.4 kB)
Email in envelope

Get an email when there's a new version of Java JWT JSON

Home / 0.12.5
Name Modified Size InfoDownloads / Week
Parent folder
0.12.5 source code.tar.gz 2024-02-01 611.8 kB
0.12.5 source code.zip 2024-02-01 1.2 MB
README.md 2024-02-01 1.3 kB
Totals: 3 Items   1.8 MB 0

This release fixes issue [#916] and ensures that builders' NestedCollection changes are applied to the collection immediately as mutation methods are called, no longer requiring application developers to call .and() to 'commit' or apply a change. For example, prior to this release, the following code did not apply changes: java JwtBuilder builder = Jwts.builder(); builder.audience().add("an-audience"); // no .and() call builder.compact(); // would not keep 'an-audience' Now this code works as expected and all other NestedCollection instances like it apply changes immediately (e.g. when calling .add(value)).

However, standard fluent builder chains are still recommended for readability when feasible, e.g.

java Jwts.builder() .audience().add("an-audience").and() // allows fluent chaining .subject("Joe") // etc... .compact()

These same notes are repeated in the CHANGELOG, and as always, project documentation is in the README.

Please allow 30 minutes from the time this announcement is published for the release to be available in Maven Central.

Source: README.md, updated 2024-02-01