[#7545] Fixed regression caused by unnecessary application of Filters

This commit is contained in:
lukaseder 2019-04-17 14:18:09 +02:00
parent c5903425ee
commit 66249dcfb7

View File

@ -1513,13 +1513,10 @@ public abstract class AbstractDatabase implements Database {
|| (nullability == Nullability.NULL && !definedType.isNullable())))
continue forcedTypeLoop;
if ( (excludeExpression != null || includeExpression != null)
&& filterExcludeInclude(
Collections.singletonList(definition),
new String[] { excludeExpression },
new String[] { includeExpression != null ? includeExpression : ".*" },
getFilters()
).isEmpty())
if (excludeExpression != null && matches(patterns.pattern(excludeExpression), definition))
continue forcedTypeLoop;
if (includeExpression != null && !matches(patterns.pattern(includeExpression), definition))
continue forcedTypeLoop;
if ( (definedType != null && (excludeTypes != null || includeTypes != null))