Skip to content

Commit 8a04547

Browse files
committed
Fix checkstyle violation
See gh-25766
1 parent 5774ea3 commit 8a04547

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/config/ConfigDataTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void getOptionsReturnsOptionsFromPropertySourceOptions() {
9696
MapPropertySource source2 = new MapPropertySource("test", Collections.emptyMap());
9797
Options options1 = Options.of(Option.IGNORE_IMPORTS);
9898
Options options2 = Options.of(Option.IGNORE_PROFILES);
99-
PropertySourceOptions propertySourceOptions = (source) -> source == source1 ? options1 : options2;
99+
PropertySourceOptions propertySourceOptions = (source) -> (source != source1) ? options2 : options1;
100100
ConfigData configData = new ConfigData(Arrays.asList(source1, source2), propertySourceOptions);
101101
assertThat(configData.getOptions(source1)).isEqualTo(options1);
102102
assertThat(configData.getOptions(source2)).isEqualTo(options2);

0 commit comments

Comments
 (0)