Browse Source

Silence deprecation warnings in YamlConfigurationFactoryTests

pull/8038/merge
Andy Wilkinson 9 years ago
parent
commit
b00d1e59f4
  1. 4
      spring-boot/src/test/java/org/springframework/boot/bind/YamlConfigurationFactoryTests.java

4
spring-boot/src/test/java/org/springframework/boot/bind/YamlConfigurationFactoryTests.java

@ -1,5 +1,5 @@ @@ -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 { @@ -44,6 +44,7 @@ public class YamlConfigurationFactoryTests {
private final Map<Class<?>, Map<String, String>> aliases = new HashMap<Class<?>, Map<String, String>>();
@SuppressWarnings("deprecation")
private Foo createFoo(final String yaml) throws Exception {
YamlConfigurationFactory<Foo> factory = new YamlConfigurationFactory<Foo>(
Foo.class);
@ -56,6 +57,7 @@ public class YamlConfigurationFactoryTests { @@ -56,6 +57,7 @@ public class YamlConfigurationFactoryTests {
return factory.getObject();
}
@SuppressWarnings("deprecation")
private Jee createJee(final String yaml) throws Exception {
YamlConfigurationFactory<Jee> factory = new YamlConfigurationFactory<Jee>(
Jee.class);

Loading…
Cancel
Save