Skip to content

Commit

Permalink
Merge pull request #1529 from Psynbiotik/master
Browse files Browse the repository at this point in the history
Remove commons-collection from project
  • Loading branch information
mattrjacobs authored Apr 7, 2017
2 parents 5d65553 + 985ef32 commit 45e9b7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion hystrix-contrib/hystrix-javanica/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ dependencies {
compile "org.aspectj:aspectjrt:$aspectjVersion"

compileApi 'com.google.guava:guava:15.0'
compile 'commons-collections:commons-collections:3.2.2'
compile 'org.apache.commons:commons-lang3:3.1'
compileApi 'com.google.code.findbugs:jsr305:2.0.0'
compile 'org.ow2.asm:asm:5.0.4'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.command.ExecutionType;
import com.netflix.hystrix.contrib.javanica.exception.FallbackDefinitionException;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.Validate;

Expand Down Expand Up @@ -294,7 +293,7 @@ private static String positionAsString(Type type, List<Type> types) {

private static int position(Type type, List<Type> types) {
if (type == null) return -1;
if (CollectionUtils.isEmpty(types)) return -1;
if (types == null || types.isEmpty()) return -1;
return types.indexOf(type);
}

Expand Down

0 comments on commit 45e9b7b

Please sign in to comment.