Fix minor typos

This commit is contained in:
Jasper Vandemalle 2020-10-02 20:43:11 +02:00 committed by Filip Hrisafov
parent 2d750193d1
commit 4480e0f367
8 changed files with 12 additions and 12 deletions

View File

@ -540,7 +540,7 @@ When there are multiple constructors then the following is done to pick the one
* If a constructor is annotated with an annotation named `@Default` (from any package) it will be used.
* If a single public constructor exists then it will be used to construct the object, and the other non public constructors will be ignored.
* If a parameterless constructor exists then it will be used to construct the object, and the other constructors will be ignored.
* If there are multiple eligible constructors then there will be a compilation error due to ambigious constructors. In order to break the ambiquity an annotation named `@Default` (from any package) can used.
* If there are multiple eligible constructors then there will be a compilation error due to ambiguous constructors. In order to break the ambiguity an annotation named `@Default` (from any package) can used.
.Deciding which constructor to use
====

View File

@ -151,7 +151,7 @@ public Map<Long, Date> stringStringMapToLongDateMap(Map<String, String> source)
MapStruct has a `CollectionMappingStrategy`, with the possible values: `ACCESSOR_ONLY`, `SETTER_PREFERRED`, `ADDER_PREFERRED` and `TARGET_IMMUTABLE`.
In the table below, the dash `-` indicates a property name. Next, the trailing `s` indicates the plural form. The table explains the options and how they are applied to the presence/absense of a `set-s`, `add-` and / or `get-s` method on the target object:
In the table below, the dash `-` indicates a property name. Next, the trailing `s` indicates the plural form. The table explains the options and how they are applied to the presence/absence of a `set-s`, `add-` and / or `get-s` method on the target object:
.Collection mapping strategy options
|===

View File

@ -155,7 +155,7 @@ MapStruct supports enum to a String mapping along the same lines as is described
*`String` to enum*
1. Similarity: All not explicit defined mappings will result in the target enum constant mapped from the `String` value when that maches the target enum constant name.
1. Similarity: All not explicit defined mappings will result in the target enum constant mapped from the `String` value when that matches the target enum constant name.
2. Similarity: `<ANY_UNMAPPED`> stops after handling defined mapping and proceeds to the switch/default clause value.
3. Similarity: `<ANY_REMAINING>` will create a mapping for each target enum constant and proceed to the switch/default clause value.
4. Difference: A switch/default value needs to be provided to have a determined outcome (enum has a limited set of values, `String` has unlimited options). Failing to specify `<ANY_REMAINING>` or `<ANY_UNMAPPED`> will result in a warning.

View File

@ -178,7 +178,7 @@ public class AdderTest {
}
@Test
public void testShouldFallBackToDaliSingularInAbsenseOfHumanSingular() {
public void testShouldFallBackToDaliSingularInAbsenceOfHumanSingular() {
AdderUsageObserver.setUsed( false );
SourceTeeth source = new SourceTeeth();

View File

@ -17,7 +17,7 @@ import org.mapstruct.ap.testutil.runner.AnnotationProcessorTestRunner;
@IssueKey("2156")
@RunWith(AnnotationProcessorTestRunner.class)
public class AmbigiousMapperTest {
public class AmbiguousMapperTest {
@Test
@WithClasses( ErroneousWithAmbiguousMethodsMapper.class)

View File

@ -19,7 +19,7 @@ public interface ErroneousWithAmbiguousMethodsMapper {
return new LeafEntity();
}
// duplicated method, triggering ambigious mapping method
// duplicated method, triggering ambiguous mapping method
default LeafEntity map2(LeafDTO dto) {
return new LeafEntity();
}

View File

@ -20,28 +20,28 @@ public interface ErroneousWithMoreThanFiveAmbiguousMethodsMapper {
return new LeafEntity();
}
// duplicated method, triggering ambigious mapping method
// duplicated method, triggering ambiguous mapping method
default LeafEntity map2(LeafDTO dto) {
return new LeafEntity();
}
// duplicated method, triggering ambigious mapping method
// duplicated method, triggering ambiguous mapping method
default LeafEntity map3(LeafDTO dto) {
return new LeafEntity();
}
// duplicated method, triggering ambigious mapping method
// duplicated method, triggering ambiguous mapping method
default LeafEntity map4(LeafDTO dto) {
return new LeafEntity();
}
// duplicated method, triggering ambigious mapping method
// duplicated method, triggering ambiguous mapping method
default LeafEntity map5(LeafDTO dto) {
return new LeafEntity();
}
// duplicated method, triggering ambigious mapping method
// duplicated method, triggering ambiguous mapping method
default LeafEntity map6(LeafDTO dto) {
return new LeafEntity();
}

View File

@ -176,7 +176,7 @@ public class ManySourceArgumentsTest {
line = 16,
message = "Several possible source properties for target property \"description\".")
})
public void shouldFailToGenerateMappingsForAmbigiousSourceProperty() {
public void shouldFailToGenerateMappingsForAmbiguousSourceProperty() {
}
@Test