aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java
index 5d757c27bbb..dba3f799798 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/MessageException.java
@@ -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) {