From 9a94ce3bc6e624e61a8ace2c9be068f84845d597 Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Mon, 16 Nov 2020 09:34:45 +0100 Subject: [PATCH] [jOOQ/jOOQ#7373] [jOOQ/jOOQ#10944] Code generator warning message should refer to deprecated only if customType configuration is present --- .../java/org/jooq/meta/AbstractTypedElementDefinition.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jOOQ-meta/src/main/java/org/jooq/meta/AbstractTypedElementDefinition.java b/jOOQ-meta/src/main/java/org/jooq/meta/AbstractTypedElementDefinition.java index e56eb2d760..37f85a890e 100644 --- a/jOOQ-meta/src/main/java/org/jooq/meta/AbstractTypedElementDefinition.java +++ b/jOOQ-meta/src/main/java/org/jooq/meta/AbstractTypedElementDefinition.java @@ -326,7 +326,12 @@ public abstract class AbstractTypedElementDefinition // matching customType, the user probably malconfigured // their or else { - log.warn("Bad configuration for " + forcedType.getName() + ". No matching found, and no matching SQLDataType found: " + forcedType); + + // [#7373] [#10944] Refer to only if someone is still using the feature + if (db.getConfiguredCustomTypes().isEmpty()) + log.warn("Bad configuration for " + forcedType.getName() + ". No matching SQLDataType found: " + forcedType); + else + log.warn("Bad configuration for " + forcedType.getName() + ". No matching found, and no matching SQLDataType found: " + forcedType); } } }