|
|
@ -86,14 +86,14 @@ class PropertiesMigrationReport {
|
|
|
|
private String determineReason(ConfigurationMetadataProperty metadata) {
|
|
|
|
private String determineReason(ConfigurationMetadataProperty metadata) {
|
|
|
|
Deprecation deprecation = metadata.getDeprecation();
|
|
|
|
Deprecation deprecation = metadata.getDeprecation();
|
|
|
|
if (StringUtils.hasText(deprecation.getShortReason())) {
|
|
|
|
if (StringUtils.hasText(deprecation.getShortReason())) {
|
|
|
|
return deprecation.getShortReason();
|
|
|
|
return "Reason: " + deprecation.getShortReason();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (StringUtils.hasText(deprecation.getReplacement())) {
|
|
|
|
if (StringUtils.hasText(deprecation.getReplacement())) {
|
|
|
|
return String.format(
|
|
|
|
return String.format(
|
|
|
|
"Reason: Replacement key '%s' uses an incompatible " + "target type",
|
|
|
|
"Reason: Replacement key '%s' uses an incompatible " + "target type",
|
|
|
|
deprecation.getReplacement());
|
|
|
|
deprecation.getReplacement());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return "none";
|
|
|
|
return "Reason: none";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private Map<String, List<PropertyMigration>> getContent(
|
|
|
|
private Map<String, List<PropertyMigration>> getContent(
|
|
|
|