HHH-16228 Avoid delegating protected methods using during construction
This commit is contained in:
parent
5451ed7437
commit
9ec32782a0
|
@ -108,14 +108,22 @@ public class DialectDelegateWrapper extends Dialect {
|
||||||
this.wrapped = Objects.requireNonNull( wrapped );
|
this.wrapped = Objects.requireNonNull( wrapped );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//can't be overriden because of how Dialects get initialized: see constructor of parent
|
||||||
@Override
|
@Override
|
||||||
public void checkVersion() {
|
protected final void checkVersion() {
|
||||||
wrapped.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
|
@Override
|
||||||
public void initDefaultProperties() {
|
protected final void registerDefaultKeywords() {
|
||||||
wrapped.initDefaultProperties();
|
//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
|
@Override
|
||||||
|
@ -133,11 +141,6 @@ public class DialectDelegateWrapper extends Dialect {
|
||||||
return wrapped.castType( sqlTypeCode );
|
return wrapped.castType( sqlTypeCode );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void registerDefaultKeywords() {
|
|
||||||
wrapped.registerDefaultKeywords();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registerKeywords(DialectResolutionInfo info) {
|
public void registerKeywords(DialectResolutionInfo info) {
|
||||||
wrapped.registerKeywords( info );
|
wrapped.registerKeywords( info );
|
||||||
|
|
Loading…
Reference in New Issue