[jOOQ/jOOQ#9009] Fix AbstractMeta constructor
Caches are now initialized lazily.
This commit is contained in:
parent
7da5918be7
commit
1ec32db4bc
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user