From 721e3efec25885c20a3023f3807884ee18eb1e5f Mon Sep 17 00:00:00 2001 From: Lauri Apple Date: Tue, 31 Oct 2017 13:39:32 +0100 Subject: [PATCH] Update readme.md --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 4398a68e9..cb1a03979 100644 --- a/readme.md +++ b/readme.md @@ -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: -* 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. -* Self-contained code—no runtime dependencies -* Clear error-reports at build time if: +* **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. +* **Self-contained code**—no runtime dependencies +* **Clear error reports** at build time if: * mappings are incomplete (not all target properties are mapped) * 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: