diff --git a/spring-boot/src/test/java/org/springframework/boot/bind/YamlConfigurationFactoryTests.java b/spring-boot/src/test/java/org/springframework/boot/bind/YamlConfigurationFactoryTests.java index 36ee414ab61..537df6f163c 100644 --- a/spring-boot/src/test/java/org/springframework/boot/bind/YamlConfigurationFactoryTests.java +++ b/spring-boot/src/test/java/org/springframework/boot/bind/YamlConfigurationFactoryTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2016 the original author or authors. + * Copyright 2012-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -44,6 +44,7 @@ public class YamlConfigurationFactoryTests { private final Map, Map> aliases = new HashMap, Map>(); + @SuppressWarnings("deprecation") private Foo createFoo(final String yaml) throws Exception { YamlConfigurationFactory factory = new YamlConfigurationFactory( Foo.class); @@ -56,6 +57,7 @@ public class YamlConfigurationFactoryTests { return factory.getObject(); } + @SuppressWarnings("deprecation") private Jee createJee(final String yaml) throws Exception { YamlConfigurationFactory factory = new YamlConfigurationFactory( Jee.class);