From 019140c901f4a36ebf27815e526f0c1f0c87032b Mon Sep 17 00:00:00 2001 From: izeye Date: Wed, 15 Jul 2015 10:48:54 +0900 Subject: [PATCH] Remove redundant check Closes gh-3497 --- .../configurationprocessor/ConfigurationMetadataMatchers.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataMatchers.java b/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataMatchers.java index 0acc7f2bba..5d5c53e796 100644 --- a/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataMatchers.java +++ b/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/ConfigurationMetadataMatchers.java @@ -230,9 +230,6 @@ public class ConfigurationMetadataMatchers { if (itemHint == null) { return false; } - if (this.name != null && !this.name.equals(itemHint.getName())) { - return false; - } for (ValueHintMatcher value : this.values) { if (!value.matches(itemHint)) { return false;