Commit b00d1e59 authored by Andy Wilkinson's avatar Andy Wilkinson

Silence deprecation warnings in YamlConfigurationFactoryTests

parent 1a69a4ff
/*
* 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<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 {
return factory.getObject();
}
@SuppressWarnings("deprecation")
private Jee createJee(final String yaml) throws Exception {
YamlConfigurationFactory<Jee> factory = new YamlConfigurationFactory<Jee>(
Jee.class);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment