aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-04-02 09:36:50 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-04-02 09:36:50 +0200
commit71675b44d74ffb48a5049deae72ab90e4b3e7914 (patch)
tree889b0e5572a3c075fc10a1736cbab28824a4b338 /sonar-plugin-api
parent4b1920d286c4efbf8e912e9310ba070624264fd9 (diff)
downloadsonarqube-71675b44d74ffb48a5049deae72ab90e4b3e7914.tar.gz
sonarqube-71675b44d74ffb48a5049deae72ab90e4b3e7914.zip
SONAR-3315 Improve error message when importing duplicate files
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/resources/DuplicatedSourceException.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/DuplicatedSourceException.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/DuplicatedSourceException.java
index 8b10eba7d12..0ff8fc72751 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/DuplicatedSourceException.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/DuplicatedSourceException.java
@@ -27,7 +27,7 @@ import org.sonar.api.utils.SonarException;
*/
public final class DuplicatedSourceException extends SonarException {
- public DuplicatedSourceException(Resource resource) {
- super(ObjectUtils.toString(resource));
+ public DuplicatedSourceException(Resource<?> resource) {
+ super("Duplicate source for resource: " + ObjectUtils.toString(resource));
}
}