mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#540 use name() instead of toString() for enum to String conversion
This commit is contained in:
parent
edac1b17cc
commit
f8586328f8
@ -34,7 +34,7 @@ public class EnumStringConversion extends SimpleConversion {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getToExpression(ConversionContext conversionContext) {
|
public String getToExpression(ConversionContext conversionContext) {
|
||||||
return "<SOURCE>.toString()";
|
return "<SOURCE>.name()";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user