mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#1479 Fix typos in the Javadoc
This commit is contained in:
parent
ef270caecb
commit
616aaa986d
@ -37,7 +37,7 @@ import org.mapstruct.util.Experimental;
|
||||
public @interface Builder {
|
||||
|
||||
/**
|
||||
* The name of the build method that needs to be invoked on the builder to create the type being build
|
||||
* The name of the build method that needs to be invoked on the builder to create the type to be build
|
||||
*
|
||||
* @return the method that needs to tbe invoked on the builder
|
||||
*/
|
||||
|
@ -210,8 +210,8 @@ public @interface Mapper {
|
||||
* NOTE: In case no builder is defined here, in {@link BeanMapping} or {@link MapperConfig} and there is a single
|
||||
* build method, then that method would be used.
|
||||
* <p>
|
||||
* If the builder is defined and there is a single method that does not match the name of the finisher than
|
||||
* a compile error will occurs
|
||||
* If the builder is defined and there is a single method that does not match the name of the build method then
|
||||
* a compile error will occur
|
||||
*
|
||||
* @return the builder information
|
||||
*
|
||||
|
@ -198,8 +198,8 @@ public @interface MapperConfig {
|
||||
* NOTE: In case no builder is defined here, in {@link BeanMapping} or {@link Mapper} and there is a single
|
||||
* build method, then that method would be used.
|
||||
* <p>
|
||||
* If the builder is defined and there is a single method that does not match the name of the finisher than
|
||||
* a compile error will occurs
|
||||
* If the builder is defined and there is a single method that does not match the name of the build method then
|
||||
* a compile error will occur
|
||||
*
|
||||
* @return the builder information
|
||||
*
|
||||
|
@ -639,8 +639,8 @@ The default implementation of the `BuilderProvider` assumes the following:
|
||||
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
|
||||
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 methods exists
|
||||
than this would be used, otherwise a compilation error would be created.
|
||||
* 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.
|
||||
* A specific build method can be defined by using `@Builder` within: `@BeanMapping`, `@Mapper` or `@MapperConfig`
|
||||
* In case there are multiple builder creation methods that satisfy the above conditions then a `MoreThanOneBuilderCreationMethodException`
|
||||
will be thrown from the `DefaultBuilderProvider` SPI.
|
||||
|
Loading…
x
Reference in New Issue
Block a user