#1479 Fix typos in the Javadoc

This commit is contained in:
Filip Hrisafov 2018-07-12 23:30:37 +02:00
parent ef270caecb
commit 616aaa986d
4 changed files with 7 additions and 7 deletions

View File

@ -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
*/

View File

@ -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
*

View File

@ -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
*

View File

@ -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.