Skip to content

Commit

Permalink
Added AutoCloseable.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Mar 1, 2022
1 parent 246e9cd commit 631d629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/com/esotericsoftware/yamlbeans/YamlReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

/** Deserializes Java objects from YAML.
* @author <a href="mailto:[email protected]">Nathan Sweet</a> */
public class YamlReader {
public class YamlReader implements AutoCloseable {
private final YamlConfig config;
Parser parser;
private final Map<String, Object> anchors = new HashMap();
Expand Down
2 changes: 1 addition & 1 deletion src/com/esotericsoftware/yamlbeans/YamlWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

/** Serializes Java objects as YAML.
* @author <a href="mailto:[email protected]">Nathan Sweet</a> */
public class YamlWriter {
public class YamlWriter implements AutoCloseable {
private final YamlConfig config;
private final Emitter emitter;
private boolean started;
Expand Down

0 comments on commit 631d629

Please sign in to comment.