From c15499002408f2b2f187db140b2ff0d4d59ba437 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Thu, 14 Apr 2016 23:23:28 +0900 Subject: [PATCH] Polish Closes gh-5691 --- .../test/autoconfigure/properties/AnnotationsPropertySource.java | 1 - 1 file changed, 1 deletion(-) diff --git a/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/properties/AnnotationsPropertySource.java b/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/properties/AnnotationsPropertySource.java index 02f6f905e8..cc9e8ac7a2 100644 --- a/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/properties/AnnotationsPropertySource.java +++ b/spring-boot-test-autoconfigure/src/main/java/org/springframework/boot/test/autoconfigure/properties/AnnotationsPropertySource.java @@ -116,7 +116,6 @@ public class AnnotationsPropertySource extends EnumerablePropertySource } private String dotAppend(String prefix, String postfix) { - prefix = (prefix == null ? "" : prefix); if (StringUtils.hasText(prefix)) { return (prefix.endsWith(".") ? prefix + postfix : prefix + "." + postfix); }