From b0b04d753ace0d77ec5c53aed77e7beb1d1ee719 Mon Sep 17 00:00:00 2001 From: lukaseder Date: Tue, 2 Dec 2014 17:37:54 +0100 Subject: [PATCH] [#3831] deprecation warning is displayed even if the flag is not active --- jOOQ-codegen/src/main/java/org/jooq/util/GenerationTool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jOOQ-codegen/src/main/java/org/jooq/util/GenerationTool.java b/jOOQ-codegen/src/main/java/org/jooq/util/GenerationTool.java index 09afb7399a..0d29451aa1 100644 --- a/jOOQ-codegen/src/main/java/org/jooq/util/GenerationTool.java +++ b/jOOQ-codegen/src/main/java/org/jooq/util/GenerationTool.java @@ -341,7 +341,7 @@ public class GenerationTool { if (d.getEnumTypes().size() > 0) log.warn("DEPRECATED", "The configuration property /configuration/generator/database/enumTypes is experimental and deprecated and will be removed in the future."); - if (d.isDateAsTimestamp() != null) + if (Boolean.TRUE.equals(d.isDateAsTimestamp())) log.warn("DEPRECATED", "The configuration property /configuration/generator/database/dateAsTimestamp is deprecated as it is superseded by custom bindings and converters. It will thus be removed in the future."); if (d.isDateAsTimestamp() != null)