aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-deprecated/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-03-26 16:31:26 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2014-03-26 16:31:47 +0100
commit88823aa9297fda7aa0fcf0e3b79e55747978a0fb (patch)
treeeafb27f91d5bcf5ec1705b5ad022e4e2a7d81023 /sonar-deprecated/src
parent74255d29d42c2eca4ce0e4a89dc0b8686b9e50a3 (diff)
downloadsonarqube-88823aa9297fda7aa0fcf0e3b79e55747978a0fb.tar.gz
sonarqube-88823aa9297fda7aa0fcf0e3b79e55747978a0fb.zip
Fix some quality flaws
Diffstat (limited to 'sonar-deprecated/src')
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/batch/SquidUtils.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/batch/SquidUtils.java b/sonar-deprecated/src/main/java/org/sonar/api/batch/SquidUtils.java
index 5a7e3a1475e..b3ead5d4214 100644
--- a/sonar-deprecated/src/main/java/org/sonar/api/batch/SquidUtils.java
+++ b/sonar-deprecated/src/main/java/org/sonar/api/batch/SquidUtils.java
@@ -37,7 +37,7 @@ public final class SquidUtils {
*/
@Deprecated
public static JavaFile convertJavaFileKeyFromSquidFormat(String key) {
- throw new UnsupportedOperationException("Not supported since v4.2. See http://docs.codehaus.org/display/SONAR/API+Changes");
+ throw unsupported();
}
/**
@@ -45,7 +45,11 @@ public final class SquidUtils {
*/
@Deprecated
public static JavaPackage convertJavaPackageKeyFromSquidFormat(String key) {
- throw new UnsupportedOperationException("Not supported since v4.2. See http://docs.codehaus.org/display/SONAR/API+Changes");
+ throw unsupported();
+ }
+
+ private static UnsupportedOperationException unsupported() {
+ return new UnsupportedOperationException("Not supported since v4.2. See http://docs.codehaus.org/display/SONAR/API+Changes");
}
/**