[jOOQ/jOOQ#14985] Fixed wrong pattern matching backport

This commit is contained in:
Lukas Eder 2023-05-01 08:01:17 +02:00
parent caa3dca7db
commit 1de1dfcb86

View File

@ -307,11 +307,12 @@ implements
*/
@Nullable
final Table<?> pathRoot() {
if (path instanceof TableImpl<?> t)
if (path instanceof TableImpl<?> t) {
if (t.path != null)
return t.pathRoot();
else
return t;
}
else
return null;
}