Update readme.md

This commit is contained in:
Lauri Apple 2017-10-31 13:39:32 +01:00 committed by Gunnar Morling
parent 60f27dbafc
commit 721e3efec2

View File

@ -24,13 +24,13 @@ MapStruct is a Java [annotation processor](http://docs.oracle.com/javase/6/docs/
Compared to mapping frameworks working at runtime, MapStruct offers the following advantages: Compared to mapping frameworks working at runtime, MapStruct offers the following advantages:
* Fast execution by using plain method invocations instead of reflection * **Fast execution** by using plain method invocations instead of reflection
* Compile-time type safety: Only objects and attributes mapping to each other can be mapped, so there's no accidental mapping of an order entity into a customer DTO, etc. * **Compile-time type safety**. Only objects and attributes mapping to each other can be mapped, so there's no accidental mapping of an order entity into a customer DTO, etc.
* Self-contained code—no runtime dependencies * **Self-contained code**—no runtime dependencies
* Clear error-reports at build time if: * **Clear error reports** at build time if:
* mappings are incomplete (not all target properties are mapped) * mappings are incomplete (not all target properties are mapped)
* mappings are incorrect (cannot find a proper mapping method or type conversion) * mappings are incorrect (cannot find a proper mapping method or type conversion)
* Mapping code is easy to debug (or edited by hand—e.g. in case of a bug in the generator) * **Easily debuggable mapping code** (or editable by hand—e.g. in case of a bug in the generator)
To create a mapping between two types, declare a mapper class like this: To create a mapping between two types, declare a mapper class like this: