From 616aaa986d473baedc8849a156616e7431673a43 Mon Sep 17 00:00:00 2001 From: Filip Hrisafov Date: Thu, 12 Jul 2018 23:30:37 +0200 Subject: [PATCH] #1479 Fix typos in the Javadoc --- core-common/src/main/java/org/mapstruct/Builder.java | 2 +- core-common/src/main/java/org/mapstruct/Mapper.java | 4 ++-- core-common/src/main/java/org/mapstruct/MapperConfig.java | 4 ++-- .../src/main/asciidoc/mapstruct-reference-guide.asciidoc | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core-common/src/main/java/org/mapstruct/Builder.java b/core-common/src/main/java/org/mapstruct/Builder.java index 68d7eb9fc..5f37028d8 100644 --- a/core-common/src/main/java/org/mapstruct/Builder.java +++ b/core-common/src/main/java/org/mapstruct/Builder.java @@ -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 */ diff --git a/core-common/src/main/java/org/mapstruct/Mapper.java b/core-common/src/main/java/org/mapstruct/Mapper.java index a4a19ba50..011c83a1f 100644 --- a/core-common/src/main/java/org/mapstruct/Mapper.java +++ b/core-common/src/main/java/org/mapstruct/Mapper.java @@ -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. *

- * 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 * diff --git a/core-common/src/main/java/org/mapstruct/MapperConfig.java b/core-common/src/main/java/org/mapstruct/MapperConfig.java index 45a95a1bf..857320b3a 100644 --- a/core-common/src/main/java/org/mapstruct/MapperConfig.java +++ b/core-common/src/main/java/org/mapstruct/MapperConfig.java @@ -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. *

- * 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 * diff --git a/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc b/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc index 1a2d481dc..1620564d1 100644 --- a/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc +++ b/documentation/src/main/asciidoc/mapstruct-reference-guide.asciidoc @@ -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.