aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorPierre <pierre.guillot@sonarsource.com>2021-09-29 17:32:29 +0200
committersonartech <sonartech@sonarsource.com>2021-10-01 20:03:19 +0000
commit125a8c4e2fdd2fee0bcd76501de6a01af528e323 (patch)
treec59254148332d3d69fc15ead0940d601ac2813b6 /server
parentc77e8cabe96881d3ff7a84f743a343abab2e6593 (diff)
downloadsonarqube-125a8c4e2fdd2fee0bcd76501de6a01af528e323.tar.gz
sonarqube-125a8c4e2fdd2fee0bcd76501de6a01af528e323.zip
cleaning up some code smells
Diffstat (limited to 'server')
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/bitbucketserver/SearchBitbucketServerReposAction.java2
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/source/HtmlTextDecorator.java2
2 files changed, 1 insertions, 3 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/bitbucketserver/SearchBitbucketServerReposAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/bitbucketserver/SearchBitbucketServerReposAction.java
index 99bd317ed4d..274ed553c98 100644
--- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/bitbucketserver/SearchBitbucketServerReposAction.java
+++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/almintegration/ws/bitbucketserver/SearchBitbucketServerReposAction.java
@@ -33,8 +33,6 @@ import org.sonar.alm.client.bitbucketserver.RepositoryList;
import org.sonar.api.server.ws.Request;
import org.sonar.api.server.ws.Response;
import org.sonar.api.server.ws.WebService;
-import org.sonar.api.utils.log.Logger;
-import org.sonar.api.utils.log.Loggers;
import org.sonar.db.DbClient;
import org.sonar.db.DbSession;
import org.sonar.db.alm.pat.AlmPatDto;
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/source/HtmlTextDecorator.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/source/HtmlTextDecorator.java
index 1449e98f779..8cb7a4de81a 100644
--- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/source/HtmlTextDecorator.java
+++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/source/HtmlTextDecorator.java
@@ -92,7 +92,7 @@ class HtmlTextDecorator {
return decoratedHtmlLines;
}
- private void addCharToCurrentLine(CharactersReader charsReader, StringBuilder currentHtmlLine, DecorationDataHolder decorationDataHolder) {
+ private static void addCharToCurrentLine(CharactersReader charsReader, StringBuilder currentHtmlLine, DecorationDataHolder decorationDataHolder) {
if (shouldStartNewLine(charsReader)) {
if (shouldReopenPendingTags(charsReader)) {
reopenCurrentSyntaxTags(charsReader, currentHtmlLine);