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

View File

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