Polishing
This commit is contained in:
parent
829d204663
commit
7808996d71
|
|
@ -57,9 +57,9 @@ class MergedSqlConfig {
|
||||||
|
|
||||||
|
|
||||||
private static <E extends Enum<?>> E getEnum(AnnotationAttributes attributes, String attributeName,
|
private static <E extends Enum<?>> E getEnum(AnnotationAttributes attributes, String attributeName,
|
||||||
E inheritOrOverrideValue, E defaultValue) {
|
E inheritedOrDefaultValue, E defaultValue) {
|
||||||
E value = attributes.getEnum(attributeName);
|
E value = attributes.getEnum(attributeName);
|
||||||
if (value == inheritOrOverrideValue) {
|
if (value == inheritedOrDefaultValue) {
|
||||||
value = defaultValue;
|
value = defaultValue;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue