Skip to content

Commit

Permalink
Tweak and optimise immutables codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
ascopes committed Apr 26, 2024
1 parent 0c673bd commit 74bd139
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,22 @@
@Style(
beanFriendlyModifiables = true,
create = "new",
defaults = @Immutable(copy = false),
deferCollectionAllocation = true,
headerComments = true,
jacksonIntegration = false,
jdkOnly = true,
jdk9Collections = true,
nullableAnnotation = "org.jspecify.annotations.Nullable",
passAnnotations = Nullable.class,
optionalAcceptNullable = true,
typeModifiable = "*Bean",
validationMethod = ValidationMethod.MANDATORY_ONLY
)
package io.github.ascopes.protobufmavenplugin;

import org.immutables.value.Value.Immutable;
import org.immutables.value.Value.Style;
import org.immutables.value.Value.Style.ValidationMethod;
import org.jspecify.annotations.NullMarked;
import org.jspecify.annotations.Nullable;

0 comments on commit 74bd139

Please sign in to comment.