]> source.dussan.org Git - sonarqube.git/commitdiff
Fix quality flaws
authorJulien Lancelot <julien.lancelot@gmail.com>
Thu, 29 Aug 2013 15:41:53 +0000 (17:41 +0200)
committerJulien Lancelot <julien.lancelot@gmail.com>
Thu, 29 Aug 2013 15:41:53 +0000 (17:41 +0200)
sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java

index 5d757c27bbb5bb1268d21691be2e43aee8208e40..dba3f799798bc7267a32de2931cdc430afde0912 100644 (file)
@@ -41,11 +41,11 @@ import static com.google.common.collect.Lists.newArrayList;
  */
 public class MessageException extends RuntimeException {
 
-  private String l10nKey;
-  private Collection<Object> l10nParams;
+  private final String l10nKey;
+  private final Collection<Object> l10nParams;
 
   private MessageException(String s) {
-    super(s);
+    this(s, null, null);
   }
 
   private MessageException(@Nullable String message, @Nullable String l10nKey, @Nullable Object[] l10nParams) {