From 79b98c9edd9f05f5f656d035312104857b3e1cb8 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 26 Oct 2020 19:25:48 -0700 Subject: [PATCH] Add ConfigurationProperty.toString() for debugging Update `ConfigurationProperty` with a sensible `toString()` to help debug task failures. --- .../boot/build/context/properties/ConfigurationProperty.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/buildSrc/src/main/java/org/springframework/boot/build/context/properties/ConfigurationProperty.java b/buildSrc/src/main/java/org/springframework/boot/build/context/properties/ConfigurationProperty.java index 11140e51329..3ea50d2d94b 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/context/properties/ConfigurationProperty.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/context/properties/ConfigurationProperty.java @@ -65,4 +65,9 @@ public class ConfigurationProperty { return this.deprecated; } + @Override + public String toString() { + return "ConfigurationProperty [name=" + this.name + ", type=" + this.type + "]"; + } + }