#805 use basic ASCII chars in the javadoc ASCII art tables

This commit is contained in:
Andreas Gudian 2016-06-29 21:48:36 +02:00
parent 4ff0676c61
commit b9bccdb225
2 changed files with 46 additions and 40 deletions

View File

@ -33,6 +33,7 @@ import java.lang.annotation.Target;
* </ol>
* <p>
* <B>Example 1:</B>
*
* <pre>
* <code>
* public enum OrderType { RETAIL, B2B, EXTRA, STANDARD, NORMAL }
@ -45,21 +46,23 @@ import java.lang.annotation.Target;
* ExternalOrderType orderTypeToExternalOrderType(OrderType orderType);
* </code>
* Mapping result:
*
* OrderType ExternalOrderType
*
* null null
* OrderType.EXTRA ExternalOrderType.SPECIAL
* OrderType.STANDARD ExternalOrderType.DEFAULT
* OrderType.NORMAL ExternalOrderType.DEFAULT
* OrderType.RETAIL ExternalOrderType.RETAIL
* OrderType.B2B ExternalOrderType.B2B
*
* +---------------------+----------------------------+
* | OrderType | ExternalOrderType |
* +---------------------+----------------------------+
* | null | null |
* | OrderType.EXTRA | ExternalOrderType.SPECIAL |
* | OrderType.STANDARD | ExternalOrderType.DEFAULT |
* | OrderType.NORMAL | ExternalOrderType.DEFAULT |
* | OrderType.RETAIL | ExternalOrderType.RETAIL |
* | OrderType.B2B | ExternalOrderType.B2B |
* +---------------------+----------------------------+
* </pre>
*
* MapStruct will <B>WARN</B> on incomplete mappings. However, if for some reason no match is found an
* {@link java.lang.IllegalStateException} will be thrown.
* <p>
* <B>Example 2:</B>
*
* <pre>
* <code>
* &#64;ValueMapping( source = "&lt;NULL&gt;", target = "DEFAULT" ),
@ -68,16 +71,16 @@ import java.lang.annotation.Target;
* ExternalOrderType orderTypeToExternalOrderType(OrderType orderType);
* </code>
* Mapping result:
*
* OrderType ExternalOrderType
*
* null ExternalOrderType.DEFAULT
* OrderType.STANDARD null
* OrderType.RETAIL ExternalOrderType.RETAIL
* OrderType.B2B ExternalOrderType.B2B
* OrderType.NORMAL ExternalOrderType.SPECIAL
* OrderType.EXTRA ExternalOrderType.SPECIAL
*
* +---------------------+----------------------------+
* | OrderType | ExternalOrderType |
* +---------------------+----------------------------+
* | null | ExternalOrderType.DEFAULT |
* | OrderType.STANDARD | null |
* | OrderType.RETAIL | ExternalOrderType.RETAIL |
* | OrderType.B2B | ExternalOrderType.B2B |
* | OrderType.NORMAL | ExternalOrderType.SPECIAL |
* | OrderType.EXTRA | ExternalOrderType.SPECIAL |
* +---------------------+----------------------------+
* </pre>
*
* @author Sjaak Derksen

View File

@ -32,6 +32,7 @@ import java.lang.annotation.Target;
* </ol>
* <p>
* <B>Example 1:</B>
*
* <pre>
* <code>
* public enum OrderType { RETAIL, B2B, EXTRA, STANDARD, NORMAL }
@ -46,21 +47,23 @@ import java.lang.annotation.Target;
* ExternalOrderType orderTypeToExternalOrderType(OrderType orderType);
* </code>
* Mapping result:
*
* OrderType ExternalOrderType
*
* null null
* OrderType.EXTRA ExternalOrderType.SPECIAL
* OrderType.STANDARD ExternalOrderType.DEFAULT
* OrderType.NORMAL ExternalOrderType.DEFAULT
* OrderType.RETAIL ExternalOrderType.RETAIL
* OrderType.B2B ExternalOrderType.B2B
*
* +---------------------+----------------------------+
* | OrderType | ExternalOrderType |
* +---------------------+----------------------------+
* | null | null |
* | OrderType.EXTRA | ExternalOrderType.SPECIAL |
* | OrderType.STANDARD | ExternalOrderType.DEFAULT |
* | OrderType.NORMAL | ExternalOrderType.DEFAULT |
* | OrderType.RETAIL | ExternalOrderType.RETAIL |
* | OrderType.B2B | ExternalOrderType.B2B |
* +---------------------+----------------------------+
* </pre>
*
* MapStruct will <B>WARN</B> on incomplete mappings. However, if for some reason no match is found an
* {@link java.lang.IllegalStateException} will be thrown.
* <p>
* <B>Example 2:</B>
*
* <pre>
* <code>
* &#64;ValueMappings({
@ -71,16 +74,16 @@ import java.lang.annotation.Target;
* ExternalOrderType orderTypeToExternalOrderType(OrderType orderType);
* </code>
* Mapping result:
*
* OrderType ExternalOrderType
*
* null ExternalOrderType.DEFAULT
* OrderType.STANDARD null
* OrderType.RETAIL ExternalOrderType.RETAIL
* OrderType.B2B ExternalOrderType.B2B
* OrderType.NORMAL ExternalOrderType.SPECIAL
* OrderType.EXTRA ExternalOrderType.SPECIAL
*
* +---------------------+----------------------------+
* | OrderType | ExternalOrderType |
* +---------------------+----------------------------+
* | null | ExternalOrderType.DEFAULT |
* | OrderType.STANDARD | null |
* | OrderType.RETAIL | ExternalOrderType.RETAIL |
* | OrderType.B2B | ExternalOrderType.B2B |
* | OrderType.NORMAL | ExternalOrderType.SPECIAL |
* | OrderType.EXTRA | ExternalOrderType.SPECIAL |
* +---------------------+----------------------------+
* </pre>
*
* @author Sjaak Derksen