[jOOQ/jOOQ#9009] Fix AbstractMeta constructor

Caches are now initialized lazily.
This commit is contained in:
Knut Wannheden 2019-08-06 18:38:54 +02:00
parent 7da5918be7
commit 1ec32db4bc

View File

@ -74,16 +74,7 @@ abstract class AbstractMeta implements Meta, Serializable {
private List<UniqueKey<?>> cachedPrimaryKeys;
AbstractMeta() {
// [#9010] TODO: Allow for opting out of this cache
this.cachedCatalogs = new LinkedHashMap<>();
this.cachedQualifiedSchemas = new LinkedHashMap<>();
this.cachedQualifiedTables = new LinkedHashMap<>();
this.cachedQualifiedSequences = new LinkedHashMap<>();
this.cachedUnqualifiedSchemas = new LinkedHashMap<>();
this.cachedUnqualifiedTables = new LinkedHashMap<>();
this.cachedUnqualifiedSequences = new LinkedHashMap<>();
this.cachedPrimaryKeys = new ArrayList<>();
}
@Override