aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-09-18 16:24:15 +0200
committersonartech <sonartech@sonarsource.com>2018-09-19 10:51:43 +0200
commit92b3cb4a98fb8ecc6d1583fd35514805cab21fba (patch)
treeaa0268da11a1522f0b4285ca68dfe9471932b1b4
parent3f671cfcace8552a32b78a9e3327394d85f863ba (diff)
downloadsonarqube-92b3cb4a98fb8ecc6d1583fd35514805cab21fba.tar.gz
sonarqube-92b3cb4a98fb8ecc6d1583fd35514805cab21fba.zip
Fix javadoc encoding
-rw-r--r--build.gradle1
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/server/debt/DebtRemediationFunction.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/log/Logger.java2
4 files changed, 4 insertions, 3 deletions
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 {
* <p>
* <code>Total remediation cost = base effort + (number of noncompliance x gap multiplier)</code>
*
- * <p>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.
+ * <p>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<WebService.Context> {
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);
* }
* }
* </pre>