aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-07-18 16:36:45 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-07-18 19:14:30 +0200
commit89369f354b6f52a6dcc488127c1286525e48372a (patch)
tree1be253eea41648cb272edaca2e367a3a1fd594d5
parent097d696e994330a7523c5ed883b7c5afa7130152 (diff)
downloadsonarqube-89369f354b6f52a6dcc488127c1286525e48372a.tar.gz
sonarqube-89369f354b6f52a6dcc488127c1286525e48372a.zip
Fix Quality flaws
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/exceptions/BadRequestException.java2
-rw-r--r--sonar-core/src/main/java/org/sonar/core/util/ContextException.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandException.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/exceptions/BadRequestException.java b/server/sonar-server/src/main/java/org/sonar/server/exceptions/BadRequestException.java
index 577bc075868..16d9da1f777 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/exceptions/BadRequestException.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/exceptions/BadRequestException.java
@@ -30,7 +30,7 @@ import static java.net.HttpURLConnection.HTTP_BAD_REQUEST;
*/
public class BadRequestException extends ServerException {
- private final Errors errors;
+ private final transient Errors errors;
public BadRequestException(String l10nKey, Object... l10nParams) {
super(HTTP_BAD_REQUEST);
diff --git a/sonar-core/src/main/java/org/sonar/core/util/ContextException.java b/sonar-core/src/main/java/org/sonar/core/util/ContextException.java
index e469d6197ca..1b5de2f8f7d 100644
--- a/sonar-core/src/main/java/org/sonar/core/util/ContextException.java
+++ b/sonar-core/src/main/java/org/sonar/core/util/ContextException.java
@@ -69,7 +69,7 @@ public class ContextException extends RuntimeException {
private static final Joiner COMMA_JOINER = Joiner.on(',');
// LinkedListMultimap is used to keep order of keys and values
- private final ListMultimap<String, Object> context = LinkedListMultimap.create();
+ private final transient ListMultimap<String, Object> context = LinkedListMultimap.create();
private ContextException(Throwable t) {
super(t);
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandException.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandException.java
index c16c1871c17..1d7749d84fa 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandException.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandException.java
@@ -21,7 +21,7 @@ package org.sonar.api.utils.command;
public class CommandException extends RuntimeException {
- private final Command command;
+ private final transient Command command;
public CommandException(Command command, String message, Throwable throwable) {
super(message + " [command: " + command + "]", throwable);