Skip to content

Commit

Permalink
sonatype fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dehall committed Aug 11, 2023
1 parent 75e77c7 commit 5eb4b14
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import java.util.Map;

import org.yaml.snakeyaml.Yaml;
import org.yaml.snakeyaml.constructor.Constructor;

public class Mapping {
public String name;
Expand All @@ -16,7 +17,7 @@ public class Mapping {
public Map<String, Object> variables;

/**
* Each action is a Map&lt;String,?&gt;. Nested fields within the YAML become ArrayLists and
* Each action is a {@code Map>String,?>}. Nested fields within the YAML become ArrayLists and
* LinkedHashMaps.
*/
public List<Map<String, Object>> actions;
Expand All @@ -29,7 +30,7 @@ public class Mapping {
*/
public static Mapping parseMapping(File mappingFile) throws FileNotFoundException {
InputStream selectorInputSteam = new FileInputStream(mappingFile);
Yaml yaml = new Yaml(new org.yaml.snakeyaml.constructor.Constructor(Mapping.class));
Yaml yaml = new Yaml(new Constructor(Mapping.class));

return yaml.loadAs(selectorInputSteam, Mapping.class);
}
Expand Down

0 comments on commit 5eb4b14

Please sign in to comment.