diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-03-26 16:31:26 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-03-26 16:31:47 +0100 |
commit | 88823aa9297fda7aa0fcf0e3b79e55747978a0fb (patch) | |
tree | eafb27f91d5bcf5ec1705b5ad022e4e2a7d81023 /sonar-deprecated/src | |
parent | 74255d29d42c2eca4ce0e4a89dc0b8686b9e50a3 (diff) | |
download | sonarqube-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.java | 8 |
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"); } /** |