diff options
author | Dinesh Bolkensteyn <dinesh@dinsoft.net> | 2011-10-20 22:10:22 +0200 |
---|---|---|
committer | Dinesh Bolkensteyn <dinesh@dinsoft.net> | 2011-10-20 22:10:22 +0200 |
commit | 8a32bef17fb6fd98e0fe765e8b66a83e7cfa195a (patch) | |
tree | c0cf4accd550e2dbbeab8049230fe7fa9d970d04 /sonar-markdown | |
parent | e1ecfa7d65c33df5ee054e57e2b5d696da038154 (diff) | |
download | sonarqube-8a32bef17fb6fd98e0fe765e8b66a83e7cfa195a.tar.gz sonarqube-8a32bef17fb6fd98e0fe765e8b66a83e7cfa195a.zip |
SONAR-2923, SONAR-2632?: Fixed some side effects on other modules (again)
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) { |