]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Quality flaws
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 29 Mar 2017 07:26:53 +0000 (09:26 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 29 Mar 2017 07:26:53 +0000 (09:26 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RulesDefinition.java

index 0e10bdb7d25f110f9b7645847c0c309e09c9d7b9..cf8e80236ce33140662a7eff9d3f39d5f21ef32d 100644 (file)
@@ -773,12 +773,12 @@ public interface RulesDefinition {
     }
 
     /**
-     * Load description from a file available in classpath. Example : <code>setMarkdownDescription(getClass().getResource("/myrepo/Rule1234.md")</code>
+     * Load description from a file available in classpath. Example : {@code setMarkdownDescription(getClass().getResource("/myrepo/Rule1234.md")}
      */
     public NewRule setMarkdownDescription(@Nullable URL classpathUrl) {
       if (classpathUrl != null) {
         try {
-          setMarkdownDescription(IOUtils.toString(classpathUrl));
+          setMarkdownDescription(IOUtils.toString(classpathUrl, UTF_8));
         } catch (IOException e) {
           throw new IllegalStateException("Fail to read: " + classpathUrl, e);
         }