aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-05-28 10:23:15 +0200
committerDavid Gageot <david@gageot.net>2012-05-28 10:43:02 +0200
commit278f7980fd80c7a2288840e1332ce30344fd74e8 (patch)
tree5baca33b8375b4e344a07c0ecb2081b1b32e730d /sonar-batch
parent858b34a0652ce0a819302e69d935a3590b0f0df9 (diff)
downloadsonarqube-278f7980fd80c7a2288840e1332ce30344fd74e8.tar.gz
sonarqube-278f7980fd80c7a2288840e1332ce30344fd74e8.zip
Revert change that broke the API
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java
index f02ef103c10..da9c7ffc214 100644
--- a/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java
+++ b/sonar-batch/src/main/java/org/sonar/batch/bootstrap/ExtensionUtils.java
@@ -36,7 +36,7 @@ public final class ExtensionUtils {
static boolean isInstantiationStrategy(Object extension, String strategy) {
Class clazz = (extension instanceof Class ? (Class) extension : extension.getClass());
- InstantiationStrategy extStrategy = AnnotationUtils.getClassAnnotation(clazz, InstantiationStrategy.class);
+ InstantiationStrategy extStrategy = AnnotationUtils.getAnnotation(clazz, InstantiationStrategy.class);
if (extStrategy != null) {
return strategy.equals(extStrategy.value());
}
@@ -49,7 +49,7 @@ public final class ExtensionUtils {
static boolean isSupportedEnvironment(Object extension, EnvironmentInformation environment) {
Class clazz = (extension instanceof Class ? (Class) extension : extension.getClass());
- SupportedEnvironment env = AnnotationUtils.getClassAnnotation(clazz, SupportedEnvironment.class);
+ SupportedEnvironment env = AnnotationUtils.getAnnotation(clazz, SupportedEnvironment.class);
if (env == null) {
return true;
}
@@ -62,12 +62,12 @@ public final class ExtensionUtils {
}
static boolean checkDryRun(Object extension, boolean dryRun) {
- return !dryRun || AnnotationUtils.getClassAnnotation(extension, NotDryRun.class)==null;
+ return !dryRun || AnnotationUtils.getAnnotation(extension, NotDryRun.class) == null;
}
static boolean isMavenExtensionOnly(Object extension) {
Class clazz = (extension instanceof Class ? (Class) extension : extension.getClass());
- SupportedEnvironment env = AnnotationUtils.getClassAnnotation(clazz, SupportedEnvironment.class);
+ SupportedEnvironment env = AnnotationUtils.getAnnotation(clazz, SupportedEnvironment.class);
return env!=null && env.value().length==1 && StringUtils.equalsIgnoreCase("maven", env.value()[0]);
}