-
-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathDisableSourcePropertyInspectionOnMapErroneous.java
More file actions
37 lines (30 loc) · 1.13 KB
/
Copy pathDisableSourcePropertyInspectionOnMapErroneous.java
File metadata and controls
37 lines (30 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Copyright MapStruct Authors.
*
* Licensed under the Apache License version 2.0, available at https://www.apache.org/licenses/LICENSE-2.0
*/
import java.time.LocalDate;
import java.util.Map;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingTarget;
@Mapper
abstract class Issue243ErroneousMapper {
@Mapping(source = "<error descr="Unknown property 'exDate'">exDate</error>", target = "exDate")
public abstract CorporateAction mapWithIntegerKeyMap(Map<Integer, String> rowValues);
@Mapping(source = "<error descr="Unknown property 'exDate'">exDate</error>", target = "exDate")
public abstract void updateWithIntegerKeyMap(
Map<Integer, String> rowValues,
@MappingTarget CorporateAction target
);
@Mapping(source = "<error descr="Unknown property 'exDate'">exDate</error>", target = "exDate")
@Mapping(source = "payDate", target = "payDate")
public abstract CorporateAction mapWithMultipleSources(
Map<String, String> rowValues,
LocalDate payDate
);
}
class CorporateAction {
public LocalDate exDate;
public LocalDate payDate;
}