From b00d1e59f4041e693e6682d20624dff3be114cc7 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 24 Jan 2017 10:56:14 +0000 Subject: [PATCH] Silence deprecation warnings in YamlConfigurationFactoryTests --- .../boot/bind/YamlConfigurationFactoryTests.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 36ee414ab6..537df6f163 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);