From: Simon Brandhof Date: Thu, 31 Mar 2016 10:23:23 +0000 (+0200) Subject: Fix default mime type of ProfileExporter X-Git-Tag: 5.5-M12~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eee6027f6146f4a529a6f3cd14637592a70cf3f2;p=sonarqube.git Fix default mime type of ProfileExporter "plain/text" is not a valid type. It must be "text/plain" --- diff --git a/server/sonar-server/src/test/java/org/sonar/server/qualityprofile/QProfileExportersTest.java b/server/sonar-server/src/test/java/org/sonar/server/qualityprofile/QProfileExportersTest.java index 37639fcb1dc..b958e49f1df 100644 --- a/server/sonar-server/src/test/java/org/sonar/server/qualityprofile/QProfileExportersTest.java +++ b/server/sonar-server/src/test/java/org/sonar/server/qualityprofile/QProfileExportersTest.java @@ -98,7 +98,7 @@ public class QProfileExportersTest { assertThat(exporters.mimeType("xootool")).isEqualTo("plain/custom"); // default mime type - assertThat(exporters.mimeType("standard")).isEqualTo("plain/text"); + assertThat(exporters.mimeType("standard")).isEqualTo("text/plain"); } @Test diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java index 8920904bc60..c6283fefe34 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/ProfileExporter.java @@ -38,7 +38,7 @@ public abstract class ProfileExporter { private String[] supportedLanguages = new String[0]; private String key; private String name; - private String mimeType = "plain/text"; + private String mimeType = "text/plain"; protected ProfileExporter(String key, String name) { this.key = key;