From 8cc1f864d96e771b444bc2dc35b319c8e9f04276 Mon Sep 17 00:00:00 2001 From: Damiano Albani Date: Thu, 28 Jul 2022 13:25:51 +0200 Subject: [PATCH] Remove unused code in GitInfoContributor Given that the `info` Actuator endpoint doesn't support/use the `git.build.time` property. --- .../springframework/boot/actuate/info/GitInfoContributor.java | 1 - 1 file changed, 1 deletion(-) diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/GitInfoContributor.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/GitInfoContributor.java index 674b09da71f6..72424a8d9a25 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/GitInfoContributor.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/info/GitInfoContributor.java @@ -71,7 +71,6 @@ protected PropertySource toSimplePropertySource() { @Override protected void postProcessContent(Map content) { replaceValue(getNestedMap(content, "commit"), "time", getProperties().getCommitTime()); - replaceValue(getNestedMap(content, "build"), "time", getProperties().getInstant("build.time")); } static class GitInfoContributorRuntimeHints implements RuntimeHintsRegistrar {