Skip to content

Commit

Permalink
add warning log if developers use the deprecated properties
Browse files Browse the repository at this point in the history
  • Loading branch information
GoAheadW3C authored and seanyinx committed Dec 12, 2017
1 parent ddb3bec commit ce4fb5d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ protected void loadPropertiesFromExtendedClass(Configuration configuration, Map<
extendedPropertyClass = readExtendedPropertyClassName(configuration, EXTENDED_CLASS_FOR_COMPATIBLE);
if (StringUtils.isEmpty(extendedPropertyClass)) {
return;
} else {
LOGGER.warn("The property `{}` is deprecated and will be removed soon, please use the new property `{}`.",
EXTENDED_CLASS_FOR_COMPATIBLE, EXTENDED_CLASS);
}
}

try {
Class<?> classExternalProperty = Class.forName(extendedPropertyClass);
if (!PropertyExtended.class.isAssignableFrom(classExternalProperty)) {
Expand Down

0 comments on commit ce4fb5d

Please sign in to comment.