Skip to content
Permalink
Browse files
Fix generics compiler warnings.
  • Loading branch information
garydgregory committed May 21, 2022
1 parent 26b7dae commit 00a1b496409fc9943292a5568ebc8a945cafc71c
Showing 1 changed file with 4 additions and 4 deletions.
@@ -60,7 +60,7 @@ public YAMLConfiguration(final HierarchicalConfiguration<ImmutableNode> c) {
public void read(final Reader in) throws ConfigurationException {
try {
final Yaml yaml = createYamlForReading(new LoaderOptions());
final Map<String, Object> map = (Map) yaml.load(in);
final Map<String, Object> map = yaml.load(in);
load(map);
} catch (final Exception e) {
rethrowException(e);
@@ -70,7 +70,7 @@ public void read(final Reader in) throws ConfigurationException {
public void read(final Reader in, final LoaderOptions options) throws ConfigurationException {
try {
final Yaml yaml = createYamlForReading(options);
final Map<String, Object> map = (Map) yaml.load(in);
final Map<String, Object> map = yaml.load(in);
load(map);
} catch (final Exception e) {
rethrowException(e);
@@ -99,7 +99,7 @@ public void dump(final Writer out, final DumperOptions options) {
public void read(final InputStream in) throws ConfigurationException {
try {
final Yaml yaml = createYamlForReading(new LoaderOptions());
final Map<String, Object> map = (Map) yaml.load(in);
final Map<String, Object> map = yaml.load(in);
load(map);
} catch (final Exception e) {
rethrowException(e);
@@ -109,7 +109,7 @@ public void read(final InputStream in) throws ConfigurationException {
public void read(final InputStream in, final LoaderOptions options) throws ConfigurationException {
try {
final Yaml yaml = createYamlForReading(options);
final Map<String, Object> map = (Map) yaml.load(in);
final Map<String, Object> map = yaml.load(in);
load(map);
} catch (final Exception e) {
rethrowException(e);

0 comments on commit 00a1b49

Please sign in to comment.