aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-duplications/src/main/java
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2013-08-16 23:32:08 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2013-08-16 23:32:08 +0200
commita48f3652c54ac1b9444ff740ab020d035fba293d (patch)
tree21d1c9544934367b82e7f37f4ac7bff4e7ebe946 /sonar-duplications/src/main/java
parent39f367043ff3cb6eb7deaa0edd168073c83da0e7 (diff)
downloadsonarqube-a48f3652c54ac1b9444ff740ab020d035fba293d.tar.gz
sonarqube-a48f3652c54ac1b9444ff740ab020d035fba293d.zip
Fix some quality flaws
Diffstat (limited to 'sonar-duplications/src/main/java')
-rw-r--r--sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
index d44eef24e5a..9ee7749cc3c 100644
--- a/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
+++ b/sonar-duplications/src/main/java/net/sourceforge/pmd/cpd/SourceCode.java
@@ -69,7 +69,7 @@ public class SourceCode {
}
return lines;
} catch (Exception e) {
- throw new RuntimeException("Problem while reading " + getFileName() + ":" + e.getMessage(), e);
+ throw new IllegalStateException("Problem while reading " + getFileName() + ":" + e.getMessage(), e);
} finally {
Closeables.closeQuietly(lnr);
}