Silence deprecation warnings in YamlConfigurationFactoryTests
This commit is contained in:
parent
1a69a4ff67
commit
b00d1e59f4
|
|
@ -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");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
|
@ -44,6 +44,7 @@ public class YamlConfigurationFactoryTests {
|
||||||
|
|
||||||
private final Map<Class<?>, Map<String, String>> aliases = new HashMap<Class<?>, Map<String, String>>();
|
private final Map<Class<?>, Map<String, String>> aliases = new HashMap<Class<?>, Map<String, String>>();
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
private Foo createFoo(final String yaml) throws Exception {
|
private Foo createFoo(final String yaml) throws Exception {
|
||||||
YamlConfigurationFactory<Foo> factory = new YamlConfigurationFactory<Foo>(
|
YamlConfigurationFactory<Foo> factory = new YamlConfigurationFactory<Foo>(
|
||||||
Foo.class);
|
Foo.class);
|
||||||
|
|
@ -56,6 +57,7 @@ public class YamlConfigurationFactoryTests {
|
||||||
return factory.getObject();
|
return factory.getObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
private Jee createJee(final String yaml) throws Exception {
|
private Jee createJee(final String yaml) throws Exception {
|
||||||
YamlConfigurationFactory<Jee> factory = new YamlConfigurationFactory<Jee>(
|
YamlConfigurationFactory<Jee> factory = new YamlConfigurationFactory<Jee>(
|
||||||
Jee.class);
|
Jee.class);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue