mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
docs: Fix typo in the builder section
This commit is contained in:
parent
779eb1bd47
commit
84062bf78f
@ -422,7 +422,7 @@ The default implementation of the `BuilderProvider` assumes the following:
|
|||||||
|
|
||||||
* The type has a parameterless public static builder creation method that returns a builder.
|
* The type has a parameterless public static builder creation method that returns a builder.
|
||||||
So for example `Person` has a public static method that returns `PersonBuilder`.
|
So for example `Person` has a public static method that returns `PersonBuilder`.
|
||||||
* The builder type has a parameterless public method (build method) that returns the type being build
|
* The builder type has a parameterless public method (build method) that returns the type being built.
|
||||||
In our example `PersonBuilder` has a method returning `Person`.
|
In our example `PersonBuilder` has a method returning `Person`.
|
||||||
* In case there are multiple build methods, MapStruct will look for a method called `build`, if such method exists
|
* In case there are multiple build methods, MapStruct will look for a method called `build`, if such method exists
|
||||||
then this would be used, otherwise a compilation error would be created.
|
then this would be used, otherwise a compilation error would be created.
|
||||||
@ -527,4 +527,4 @@ Otherwise, you would need to write a custom `BuilderProvider`
|
|||||||
[TIP]
|
[TIP]
|
||||||
====
|
====
|
||||||
In case you want to disable using builders then you can use the `NoOpBuilderProvider` by creating a `org.mapstruct.ap.spi.BuilderProvider` file in the `META-INF/services` directory with `org.mapstruct.ap.spi.NoOpBuilderProvider` as it's content.
|
In case you want to disable using builders then you can use the `NoOpBuilderProvider` by creating a `org.mapstruct.ap.spi.BuilderProvider` file in the `META-INF/services` directory with `org.mapstruct.ap.spi.NoOpBuilderProvider` as it's content.
|
||||||
====
|
====
|
||||||
|
Loading…
x
Reference in New Issue
Block a user