diff options
author | Fabrice Bellingard <bellingard@gmail.com> | 2012-04-02 09:36:50 +0200 |
---|---|---|
committer | Fabrice Bellingard <bellingard@gmail.com> | 2012-04-02 09:36:50 +0200 |
commit | 71675b44d74ffb48a5049deae72ab90e4b3e7914 (patch) | |
tree | 889b0e5572a3c075fc10a1736cbab28824a4b338 /sonar-plugin-api | |
parent | 4b1920d286c4efbf8e912e9310ba070624264fd9 (diff) | |
download | sonarqube-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.java | 4 |
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)); } } |