diff options
Diffstat (limited to 'sonar-markdown')
-rw-r--r-- | sonar-markdown/src/main/java/org/sonar/markdown/Markdown.java | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sonar-markdown/src/main/java/org/sonar/markdown/Markdown.java b/sonar-markdown/src/main/java/org/sonar/markdown/Markdown.java index f727d748e60..2d0991f5f60 100644 --- a/sonar-markdown/src/main/java/org/sonar/markdown/Markdown.java +++ b/sonar-markdown/src/main/java/org/sonar/markdown/Markdown.java @@ -43,14 +43,9 @@ public final class Markdown { private String convert(String input) { CodeReader reader = new CodeReader(input); - try { - MarkdownOutput output = new MarkdownOutput(); - dispatcher.consume(reader, output); - return output.toString(); - - } finally { - reader.close(); - } + MarkdownOutput output = new MarkdownOutput(); + dispatcher.consume(reader, output); + return output.toString(); } public static String convertToHtml(String input) { |