mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
fix compilation under JDK6 javac
This commit is contained in:
parent
6639447dea
commit
d4e2033fbb
@ -113,7 +113,7 @@ public class EnumMappingTest extends MapperTestBase {
|
||||
kind = Kind.ERROR,
|
||||
line = 34,
|
||||
messageRegExp = "The following constants from the source enum have no corresponding constant in the " +
|
||||
"target enum and must be be mapped via @Mapping: EXTRA, STANDARD, NORMAL"),
|
||||
"target enum and must be be mapped via @Mapping: EXTRA, STANDARD, NORMAL")
|
||||
}
|
||||
)
|
||||
public void shouldRaiseErrorIfSourceConstantWithoutMatchingConstantInTargetTypeIsNotMapped() {
|
||||
|
@ -35,7 +35,7 @@ public interface ErroneousOrderMapperUsingUnknownEnumConstants {
|
||||
|
||||
@Mappings({
|
||||
@Mapping(source = "FOO", target = "SPECIAL"),
|
||||
@Mapping(source = "EXTRA", target = "BAR"),
|
||||
@Mapping(source = "EXTRA", target = "BAR")
|
||||
})
|
||||
ExternalOrderType orderTypeToExternalOrderType(OrderType orderType);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user