mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-16228 Avoid delegating protected methods using during construction
This commit is contained in:
parent
9d833671bb
commit
2ab68f2164
@ -108,14 +108,22 @@ public DialectDelegateWrapper(Dialect wrapped) {
|
||||
this.wrapped = Objects.requireNonNull( wrapped );
|
||||
}
|
||||
|
||||
//can't be overriden because of how Dialects get initialized: see constructor of parent
|
||||
@Override
|
||||
public void checkVersion() {
|
||||
wrapped.checkVersion();
|
||||
protected final void checkVersion() {
|
||||
//intentionally empty: this is used by the super constructor (yuk)
|
||||
}
|
||||
|
||||
//can't be overriden because of how Dialects get initialized: see constructor of parent
|
||||
@Override
|
||||
public void initDefaultProperties() {
|
||||
wrapped.initDefaultProperties();
|
||||
protected final void registerDefaultKeywords() {
|
||||
//intentionally empty: this is used by the super constructor (yuk)
|
||||
}
|
||||
|
||||
//can't be overriden because of how Dialects get initialized: see constructor of parent
|
||||
@Override
|
||||
protected final void initDefaultProperties() {
|
||||
//intentionally empty: this is used by the super constructor (yuk)
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -133,11 +141,6 @@ public String castType(int sqlTypeCode) {
|
||||
return wrapped.castType( sqlTypeCode );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerDefaultKeywords() {
|
||||
wrapped.registerDefaultKeywords();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerKeywords(DialectResolutionInfo info) {
|
||||
wrapped.registerKeywords( info );
|
||||
|
Loading…
x
Reference in New Issue
Block a user