diff --git a/modules/swagger-core/src/main/java/io/swagger/util/PrimitiveType.java b/modules/swagger-core/src/main/java/io/swagger/util/PrimitiveType.java index 704c7f10dd..783c37e332 100644 --- a/modules/swagger-core/src/main/java/io/swagger/util/PrimitiveType.java +++ b/modules/swagger-core/src/main/java/io/swagger/util/PrimitiveType.java @@ -257,18 +257,19 @@ private PrimitiveType(Class keyClass, String commonName) { } /** - * Adds support for custom mapping of classes to primitive types + * Adds support for custom excluded classes * - * @return Set of custom classes to primitive type + * @since 1.6.6 + * @return Set of custom excluded classes */ public static Set customExcludedClasses() { return customExcludedClasses; } /** - * Adds support for custom mapping of classes to primitive types + * Adds support for custom excluded external classes * - * @return Set of custom classes to primitive type + * @return Set of custom excluded external classes */ public static Set customExcludedExternalClasses() { return customExcludedExternalClasses; @@ -277,6 +278,7 @@ public static Set customExcludedExternalClasses() { /** * Adds support for custom mapping of classes to primitive types * + * @since 1.6.13 * @return Map of custom classes to primitive type */ public static Map customClasses() { @@ -295,6 +297,7 @@ public static PrimitiveType fromType(Type type) { if (custom != null) { return custom; } + final PrimitiveType external = EXTERNAL_CLASSES.get(raw.getName()); if (external != null) { if (!customExcludedExternalClasses().contains(raw.getName())) {