summaryrefslogtreecommitdiffstats
path: root/sonar-markdown
diff options
context:
space:
mode:
authorDinesh Bolkensteyn <dinesh@dinsoft.net>2011-10-20 22:10:22 +0200
committerDinesh Bolkensteyn <dinesh@dinsoft.net>2011-10-20 22:10:22 +0200
commit8a32bef17fb6fd98e0fe765e8b66a83e7cfa195a (patch)
treec0cf4accd550e2dbbeab8049230fe7fa9d970d04 /sonar-markdown
parente1ecfa7d65c33df5ee054e57e2b5d696da038154 (diff)
downloadsonarqube-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.java11
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) {