diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-02-22 01:11:44 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-02-22 01:11:44 +0100 |
commit | 948692308d6f43e0525f0bf3210e44288a24f8da (patch) | |
tree | af37c6e691abf079f4eee469e86a7a734bcff439 /sonar-plugin-api | |
parent | 53dd941df44c4529ae6fb58f64c1fa5c62b1f7db (diff) | |
download | sonarqube-948692308d6f43e0525f0bf3210e44288a24f8da.tar.gz sonarqube-948692308d6f43e0525f0bf3210e44288a24f8da.zip |
Remove the dependency on ArrayUtils from ResourceTypeTree
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java index 38b26c11a72..3acaa29481f 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/ResourceTypeTree.java @@ -23,7 +23,6 @@ import com.google.common.annotations.Beta; import com.google.common.base.Preconditions; import com.google.common.base.Predicate; import com.google.common.collect.*; -import org.apache.commons.lang.ArrayUtils; import org.sonar.api.BatchExtension; import org.sonar.api.ServerExtension; import org.sonar.api.batch.InstantiationStrategy; @@ -84,7 +83,8 @@ public final class ResourceTypeTree implements BatchExtension, ServerExtension { public Builder addRelations(String parentQualifier, String... childQualifiers) { Preconditions.checkNotNull(parentQualifier); - Preconditions.checkArgument(ArrayUtils.isNotEmpty(childQualifiers), "childQualifiers can't be empty"); + Preconditions.checkNotNull(childQualifiers); + Preconditions.checkArgument(childQualifiers.length > 0, "childQualifiers can't be empty"); relations.putAll(parentQualifier, Arrays.asList(childQualifiers)); return this; } |