Skip to content

Commit 8a87d5b

Browse files
committed
Add explicit static keyword for nested classes that do not depend on outer context
1 parent 6d11122 commit 8a87d5b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

commonmark/src/test/java/org/commonmark/test/UsageExampleTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void customizeRendering() {
9696
assertThat(renderer.render(document)).isEqualTo("<p>Example:</p>\n<pre>code\n</pre>\n");
9797
}
9898

99-
class WordCountVisitor extends AbstractVisitor {
99+
static class WordCountVisitor extends AbstractVisitor {
100100

101101
int wordCount = 0;
102102

@@ -112,7 +112,7 @@ public void visit(Text text) {
112112
}
113113
}
114114

115-
class ImageAttributeProvider implements AttributeProvider {
115+
static class ImageAttributeProvider implements AttributeProvider {
116116
@Override
117117
public void setAttributes(Node node, String tagName, Map<String, String> attributes) {
118118
if (node instanceof Image) {
@@ -121,7 +121,7 @@ public void setAttributes(Node node, String tagName, Map<String, String> attribu
121121
}
122122
}
123123

124-
class IndentedCodeBlockNodeRenderer implements NodeRenderer {
124+
static class IndentedCodeBlockNodeRenderer implements NodeRenderer {
125125

126126
private final HtmlWriter html;
127127

0 commit comments

Comments
 (0)