immutables
immutables copied to clipboard
Annotation processor to create immutable objects and builders. Feels like Guava's immutable collections but for regular value objects. JSON, Jackson, Gson, JAX-RS integrations included
Error Prone 2.14.0 introduces [NullableOnContainingClass bug pattern](https://errorprone.info/bugpattern/NullableOnContainingClass), which flags incorrect `@Nullable` annotation usages on the enclosing instance types. However, applying the fix on Immutables types is problematic since it seems...
Hi, I have been using this library for long time now and I have a few questions/suggestions: 1) Would it be possible to produce a feature to combine multiple annotations?...
It is probably more question rather than an issue. It generates code ok after invocation of compiliation either with maven explicitly or with IDE. However the question: if I create...
toString() leaks the existence of a redacted field if that field is first and no fields are optional
If you create a class that has a redacted field and no optional fields, and the redacted field is first, then toString() puts a leading comma in the field list,...
Currently I'm facing a situation where a public Builder interface for an immutable object extends a generic interface that has a `from(T)` method, setup is something along the lines of...
_Originally posted by @Adrodoc in https://github.com/immutables/immutables/issues/1388#issuecomment-1363178712_ The problem I am having is that I have a type with a collection (`ImmutableList`). This causes the generated immutable to have two "of"...
``` interface Test { default Optional test() { return Optional.of("test"); } } ``` Will generate only setter `test(Optional test)` instead of generate another setter `test(String test) `
A common flavor of Java class is one which is not simply a container of values; rather it takes some dependencies at initialization, and exposes some useful functionality to callers....
This is an attempt to fix autogenerated Criteria that do not work in `find()` in the `MongoBackend` an issue also described in https://github.com/immutables/immutables/issues/1387 with more details. The conversion from the...
I recently started using the Immutables library, and I'm puzzled by the following behavior: Given the following abstract value type ``` @Value.Immutable public abstract class Foo { public abstract String...