fix compilation under JDK6 javac

This commit is contained in:
Andreas Gudian 2014-03-16 19:43:00 +01:00
parent 6639447dea
commit d4e2033fbb
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -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);
}