Skip to content

Commit

Permalink
make mc imp MineMarkDrawable implement AutoCloseable
Browse files Browse the repository at this point in the history
  • Loading branch information
DeDiamondPro committed Dec 12, 2024
1 parent c932fc5 commit 1180666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import java.io.IOException;
import java.io.Reader;

public class MineMarkDrawable {
public class MineMarkDrawable implements AutoCloseable {
public static final MineMarkCore<MarkdownStyle, MarkdownRenderer> DEFAULT_CORE = addMinecraftExtensions(MineMarkCore.builder())
.addExtension(StrikethroughExtension.create())
.addExtension(TablesExtension.create())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,12 @@
import org.jetbrains.annotations.Nullable;
import org.xml.sax.Attributes;

import java.io.Closeable;
import java.util.ArrayList;

/**
* Base class for an element that should render content, only one can apply per HTML tag.
*/
public abstract class Element<S extends Style, R> implements Closeable {
public abstract class Element<S extends Style, R> implements AutoCloseable {
protected final @Nullable Element<S, R> parent;
protected final ArrayList<Element<S, R>> children = new ArrayList<>();
protected final String qName;
Expand Down

0 comments on commit 1180666

Please sign in to comment.