Skip to content

Commit c984ddb

Browse files
committed
Merge branch '2.5.x' into 2.6.x
Closes gh-35415
2 parents ef1401f + d1d990a commit c984ddb

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/OriginTrackedYamlLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2022 the original author or authors.
2+
* Copyright 2012-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -77,8 +77,8 @@ protected Yaml createYaml() {
7777

7878
private Yaml createYaml(LoaderOptions loaderOptions) {
7979
BaseConstructor constructor = new OriginTrackingConstructor(loaderOptions);
80-
Representer representer = new Representer();
8180
DumperOptions dumperOptions = new DumperOptions();
81+
Representer representer = new Representer(dumperOptions);
8282
Resolver resolver = HAS_RESOLVER_LIMIT ? new NoTimestampResolverWithLimit() : new NoTimestampResolver();
8383
return new Yaml(constructor, representer, dumperOptions, loaderOptions, resolver);
8484
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright 2012-2023 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* https://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.springframework.boot.env;
18+
19+
import org.springframework.boot.testsupport.classpath.ClassPathOverrides;
20+
21+
/**
22+
* Tests for {@link YamlPropertySourceLoader} with SnakeYAML 2.0.
23+
*
24+
* @author Andy Wilkinson
25+
*/
26+
@ClassPathOverrides("org.yaml:snakeyaml:2.0")
27+
class YamlPropertySourceLoaderSnakeYaml20Tests extends YamlPropertySourceLoaderTests {
28+
29+
}

0 commit comments

Comments
 (0)