From: Simon Brandhof Date: Tue, 18 Sep 2018 14:24:15 +0000 (+0200) Subject: Fix javadoc encoding X-Git-Tag: 7.5~464 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=92b3cb4a98fb8ecc6d1583fd35514805cab21fba;p=sonarqube.git Fix javadoc encoding --- diff --git a/build.gradle b/build.gradle index f2a5dc8b6d4..257fe527f20 100644 --- a/build.gradle +++ b/build.gradle @@ -242,6 +242,7 @@ subprojects { tasks.withType(Javadoc) { options.addStringOption('Xdoclint:none', '-quiet') + options.encoding = 'UTF-8' } task sourcesJar(type: Jar, dependsOn: classes) { diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/debt/DebtRemediationFunction.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/debt/DebtRemediationFunction.java index b2635b58901..eb7a333466f 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/server/debt/DebtRemediationFunction.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/debt/DebtRemediationFunction.java @@ -48,7 +48,7 @@ public interface DebtRemediationFunction { *

* Total remediation cost = base effort + (number of noncompliance x gap multiplier) * - *

The rule must provide the "gap" value when raising an issue. Let’s take as a example the “Paragraphs should not be too complex” rule. + *

The rule must provide the "gap" value when raising an issue. Let's take as a example the "Paragraphs should not be too complex" rule. * If you set the rule threshold to 20, and you have a paragraph with a complexity of 27, you have 7 points of complexity * to remove. Internally, this is called the Gap. In that case, if you use the LINEAR_OFFSET configuration * with an base effort of 4h and a remediation cost of 1mn, the effort for this issue related to a diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java index f385d9e9bfe..0515f1aea59 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java @@ -523,7 +523,7 @@ public interface WebService extends Definable { this.changelog = newAction.changelog; checkState(this.handler != null, "RequestHandler is not set on action %s", path); - logWarningIf(isNullOrEmpty(this.description), "Description is not set on action " + path); + logWarningIf(isNullOrEmpty(this.description), "Description is not set on action " + path); logWarningIf(isNullOrEmpty(this.since), "Since is not set on action " + path); logWarningIf(!this.post && this.responseExample == null, "The response example is not set on action " + path); diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/Logger.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/Logger.java index e0efbcbca32..f80f3262ae6 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/Logger.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/log/Logger.java @@ -32,7 +32,7 @@ import javax.annotation.Nullable; * * public void doSomething() { * LOGGER.info("something valuable for production environment"); - * LOGGER.warn("message with arguments {} and {}", "foo", 42); + * LOGGER.warn("message with arguments {} and {}", "foo", 42); * } * } *