immutables icon indicating copy to clipboard operation
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

Results 225 immutables issues
Sort by recently updated
recently updated
newest added

Can't override static builder for the builder-in-disguise pattern (from https://github.com/immutables/immutables/issues/234#issuecomment-170574928 (and https://github.com/immutables/immutables/issues/432#issuecomment-241498679)) which is referenced in the docs > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project value-fixture: Compilation...

can't override static builder for the builder-in-disguise pattern (from https://github.com/immutables/immutables/issues/234#issuecomment-170574928) which is referenced in the docs > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project value-fixture: Compilation failure [ERROR]...

Hi, I see there is a repo for immutables 3 development (https://github.com/immutables/im3). Is there a release timeline? Will it have new features? just curious.

``` @Value.Immutable @JsonSerialize(as = ImmutableThreadsPlan.class) @JsonDeserialize(builder = ImmutableThreadsPlan.Builder.class) public interface ThreadsPlan extends Serializable { @Value.Default default int getAvailableProcessors() { return 30; } @Value.Derived @JsonProperty(value = "totalThreads", access = JsonProperty.Access.READ_ONLY) default...

question

Not a bug ticket, but a hint for others running into the same issue: ### Problem We have a project with about 3000 Java source files some of which use...

knowledgebase

Passing the type arguments directly to TypevarContext means they don't have to be parsed, simplifying the code and avoiding the possibility of parse failures. Any feedback is welcome. Please let...

Using immutables v2.8.3 When I look at the generated immutables class for a Pojo such as ``` @Value.Immutable @JsonSerialize(as = ImmutableMyPojo.class) @JsonDeserialize(as = ImmutableMyPojo.class) public interface MyPojo { } ```...

If there is a class that statically imports a non-existent/deleted static method on the defining immutable type, a build error occurs - this is expected. What is not expected is...

Documentation of `@Builder.Constructor` claims: > Class level and package level style annotations fully supported (see org.immutables.value.Value.Style). But this is not true. Many `Style` parameters are not supported. Here are some,...

question
docbug

How could something like the following be achieved: ``` java Parent parent = ImmutableParent.builder() .name("parent") .withNewChild() .name("child") .endChild() // (or just .end()) .build(); // With the following: @Value.Immutable interface Child...