[jOOQ/jOOQ#12083] [jOOQ/jOOQ#15546] Regression with configured comments
The [jOOQ/jOOQ#9728] configured comments feature may produce empty comments, e.g. when <includeSchemaComment/> is false. In that case, we mustn't re-introduce the schema comment!
This commit is contained in:
parent
2323a84f0f
commit
b0d1be0d92
@ -163,33 +163,32 @@ public abstract class AbstractDefinition implements Definition {
|
||||
|
||||
@Override
|
||||
public final String getComment() {
|
||||
String c = getComment0();
|
||||
return !isEmpty(c) ? c : defaultIfNull(getDatabase().getComments().get(this), "");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return getSchemaComment();
|
||||
}
|
||||
|
||||
private final String getComment0() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return schemaComment;
|
||||
private final String getSchemaComment() {
|
||||
return !isEmpty(schemaComment) ? schemaComment : defaultIfNull(getDatabase().getComments().get(this), "");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
Reference in New Issue
Block a user