Update dependency org.immutables:value-annotations to v2.11.7
This PR contains the following updates:
| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
| org.immutables:value-annotations (source) | dependencies | minor | 2.10.1 -> 2.11.7 |
2.12.0 |
Release Notes
immutables/immutables (org.immutables:value-annotations)
v2.11.7
Maintenance & refinements release
Thank you for the bug reports and suggestions!
Issues
- #1621 Version 2.11.7 tag not present on GitHub
- #1611 Jspecify Nullable doesn't work properly with generics
-
#1612 Conflicting constructor on empty interfaces when
allParameters = true, andprivateNoArgConstructor = true/protectedNoArgConstructor = true(edge case regression after #1604) -
#1579 TYPE_USE Nullable annotation not respected in the builder for arrays (arrays/elements annotation mirrors are missing)
(addressed with some source code parsing, which requires
-sourcepathto be provided during compilation)
PRs
- Fix
.unset*()for modifiable with primitive field and default value. by @aquariusrick in #1606 - Remove redundant cast of optional record property wither methods by @werli in #1616
New Contributors
- @aquariusrick made their first contribution in #1606
- @werli made their first contribution in #1616
Full Changelog: https://github.com/immutables/immutables/compare/2.11.6...2.11.7
v2.11.6
Maintenance & refinements release
Thank you for the bug reports and suggestions!
Issues
-
#1602 Avoid calling check/validation method twice when using plain public constructors (
@Style(of = "new") - #1603 Fixed compilation error with staged builders and complex generics
-
#1604 parameterless constructor when there's no attributes, but
allParameters=trueorallMandatoryParameters=true
Full Changelog: https://github.com/immutables/immutables/compare/2.11.5...2.11.6
v2.11.5
Maintenance & refinements release
Thank you for the bug reports and PRs!
Issues
-
#1602
@Checkmethods (returningvoidi.e. non-normalizing) now works from plain public constructors (@Style(of = "new") -
#1583 Staged builder now works for "outside"/top-level class builders, including record builders (with
*BuildStagesclass generated to hold stage interfaces) -
#1598 fixed:
@Datafromorg.immutables:datatypecan be used as meta-annotation -
#1433
additionalStrictContainerConstructor=falsecan be used to suppress redundant strict factory method (constructor) overload
PRs
New Contributors
Full Changelog: https://github.com/immutables/immutables/compare/2.11.4...2.11.5
v2.11.4
Maintenance & refinements release
Thank you for the bug reports and PRs!
Issues
-
#1597 Fixed constant defaults
@Value.Default.{Int, Long, String...}were always applied for Immutable values (were ok for records) - #1592 When multiple annotations share the same parent annotation in passAnnotations, only one child annotation is propagated on an attribute
- #1591 #1521 @Serial.AllStructural wit class retention and fixed to work as meta-annotation (on a custom style annotation etc).
-
#1588 Missing imports for classes in package names with _ (Fixed handling of
$and_in java identifiers in import rewriter) -
#1585 Additional way to register custom immutable annotation. Use
-Aimmutables.annotation=<fqcn>for custom annotation (can have meta-styles etc)
PRs
- Fix @param for wither for optional within a record by @AndreiPurcaru in #1589
New Contributors
- @AndreiPurcaru made their first contribution in #1589
Full Changelog: https://github.com/immutables/immutables/compare/2.11.3...2.11.4
v2.11.3
Maintenance & refinements release
Thank you for PRs and providing feedback!
-
#1432/#1582 JDK optional types now have first class support for having default value provided by accessor annotated with
@Value.Default, no warnings are issued. - #1578 Fixed: missing header/package declaration in generated files with no imports
- #1580 Fixed: with methods do not handle fallbackNullableAnnotation properly on Map types
What's Changed
- Optional with default by @hwellmann in #1582
Full Changelog: https://github.com/immutables/immutables/compare/2.11.2...2.11.3
v2.11.2
Maintenance and refinement release
-
#1572 #1573 Optimized
frommerging method for many supertypes - Introduced static mode (via compile time overloads only) for
fromsupertypes. Switch viaStyle.mergeFromSupertypesDynamically=false. This gives (very) old behavior before dynamic merging was introduced, for some, it is more intuitive than dynamic logic and avoid heap pollution (& ClassCastException) for some rare cases of supertypes imlementing parameterized interfaces with different actual type arguments in a hierarchy. -
#1576 Fixed Jackson JSON deserialization for optional types (
required=falsewas generated only for Nullable, now - for any non mandatory attribute). Generating Jacksonrequiredcan be disabled viasetJacksonPropertyRequired=false, the difference is if Jackson will issue an error on missing attribute or Immutables' builder will throw an exception for the same.
PRs merged
- fix: set correct override for Jackson annotation processor option by @devinrsmith in #1574
- Optimize mergeInternal generation with specialized methods per subtype by @christophercolumbusdog in #1573
New Contributors
- @devinrsmith made their first contribution in #1574
Full Changelog: https://github.com/immutables/immutables/compare/2.11.1...2.11.2
v2.11.1
Maintenance and minor enhancements
- Various bugfixes: Jackson integration, refinements/fixes in withers.
- Extending Builders for records. I.e. nested
static class Builder extends MyRecordBuilder {} - Can expose
*IsSetmethods on builder - new module
org.immutables:datatype. It's slightly modernized version oforg.immutables:data(now deprecated), no dependency on Guava, + support for records with generated builders
Also
- Include org.immutables:data in bill of materials by @ascopes in #1556
- GH-1557: Fix erroneous code generation for TypeTokens of raw annotated types by @ascopes in #1558
- Final stage builder methods' return value should be ignorable by @benhalasi in #1568
New Contributors
- @benhalasi made their first contribution in #1568
Full Changelog: https://github.com/immutables/immutables/compare/2.11.0...2.11.1
v2.11.0
Many thanks to all contributors: PRs, testing and evaluation much appreciated!
-
@Value.Builderfor records on builders-
@Value.Default.*annotation for constant default values for records and regular abstract types - Generated "wither" interfaces for records
@Value.Builder record A(int a, String b) implements WithA {..
-
- JSpecify
@Nullablesupport in@NullMarkedmode. - In general improved support for
TYPE_USEannotations (as far as compiler and peculiarities of existing code allows), - Lambda builders when using
Style.attributeBuilderDetection=true:builder.value(b -> b.a(1).c("")) - Various bugfixes and other improvements
Also
- Added support for the 'required' attribute for the generated JSON Property Annotation by @harrismirza in #1515
- Fix a bug with type annotation handling by @cushon in #1532
- simple lambda builders by @elucash in #1533
- Make it possible to inject annotations to "with" types by @fp7 in #1528
- Support Sub-Collection Queries for InMemory and MongoDB by @markif in #1526
- Change default Mongo UUID representation to STANDARD/v4 (Criteria) by @mathansen in #1482
- Use source retention for serial annotations by @Xcelled in #1521
- Add legacy SourceOrdering option by @christophercolumbusdog in #1541
- Update Generated.java to be documented. by @ascopes in #1543
Closed issues https://github.com/immutables/immutables/milestone/82?closed=1
New Contributors
- @harrismirza made their first contribution in #1515
- @cushon made their first contribution in #1532
- @markif made their first contribution in #1526
- @mathansen made their first contribution in #1482
- @Xcelled made their first contribution in #1521
- @christophercolumbusdog made their first contribution in #1541
- @ascopes made their first contribution in #1543
Full Changelog: https://github.com/immutables/immutables/compare/2.10.1...2.11.0
Configuration
📅 Schedule: Branch creation - Every minute ( * * * * * ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot