]> source.dussan.org Git - sonarqube.git/commitdiff
Fix Quality flaws
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 18 Jul 2016 14:36:45 +0000 (16:36 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 18 Jul 2016 17:14:30 +0000 (19:14 +0200)
server/sonar-server/src/main/java/org/sonar/server/exceptions/BadRequestException.java
sonar-core/src/main/java/org/sonar/core/util/ContextException.java
sonar-plugin-api/src/main/java/org/sonar/api/utils/command/CommandException.java

index 577bc0758688d00d775b41a79b2e6d847f3dbeda..16d9da1f777cef3cf46def9b22836cee83e634d2 100644 (file)
@@ -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);
index e469d6197ca0dec2ecf349cc5cb264ae3d8a0b07..1b5de2f8f7defb5fed4be72179548aeb60e46ded 100644 (file)
@@ -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);
index c16c1871c176987abde385f1b74898e59e84ba2e..1d7749d84faf4a174bb2077a4863ab74041fb413 100644 (file)
@@ -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);