From 2d814e5102106706c9af852b7312333ea676d8ce Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 30 Jan 2018 15:14:49 +0100 Subject: [PATCH] Restore "Reason: " prefix --- .../properties/migrator/PropertiesMigrationReport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-properties-migrator/src/main/java/org/springframework/boot/context/properties/migrator/PropertiesMigrationReport.java b/spring-boot-project/spring-boot-properties-migrator/src/main/java/org/springframework/boot/context/properties/migrator/PropertiesMigrationReport.java index 66dbffd8ca..01c2a3841d 100644 --- a/spring-boot-project/spring-boot-properties-migrator/src/main/java/org/springframework/boot/context/properties/migrator/PropertiesMigrationReport.java +++ b/spring-boot-project/spring-boot-properties-migrator/src/main/java/org/springframework/boot/context/properties/migrator/PropertiesMigrationReport.java @@ -86,14 +86,14 @@ class PropertiesMigrationReport { private String determineReason(ConfigurationMetadataProperty metadata) { Deprecation deprecation = metadata.getDeprecation(); if (StringUtils.hasText(deprecation.getShortReason())) { - return deprecation.getShortReason(); + return "Reason: " + deprecation.getShortReason(); } if (StringUtils.hasText(deprecation.getReplacement())) { return String.format( "Reason: Replacement key '%s' uses an incompatible " + "target type", deprecation.getReplacement()); } - return "none"; + return "Reason: none"; } private Map> getContent(