Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hystrix-contrib/hystrix-javanica/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ dependencies {
compileApi "org.aspectj:aspectjweaver:$aspectjVersion"
compile "org.aspectj:aspectjrt:$aspectjVersion"

compileApi 'com.google.guava:guava:15.0'
compileApi 'com.google.guava:guava:31.1-jre'
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 @@ -75,6 +75,11 @@ public CacheInvocationContext(A cacheAnnotation, MethodExecutionAction cacheKeyM
public boolean apply(CacheInvocationParameter input) {
return input.hasCacheKeyAnnotation();
}

@Override
public boolean test(CacheInvocationParameter input) {
return apply(input);
}
});
if (filtered.iterator().hasNext()) {
keyParameters = ImmutableList.<CacheInvocationParameter>builder().addAll(filtered).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ private Annotation cacheKeyAnnotation() {
public boolean apply(Annotation input) {
return input.annotationType().equals(CacheKey.class);
}
@Override
public boolean test(Annotation input) {
return apply(input);
}
}).orNull();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,10 @@ private <T> Predicate<List<T>> nonEmptyList() {
public boolean apply(@Nullable List<T> input) {
return input != null && !input.isEmpty();
}
@Override
public boolean test(List<T> input) {
return apply(input);
}
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ private static boolean isAnnotationPresent(CacheInvocationParameter parameter, f
public boolean apply(Annotation input) {
return input.annotationType().equals(annotation);
}
@Override
public boolean test(Annotation input) {
return apply(input);
}
}).isPresent();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ public User getUserByEmail(final String email) {
public boolean apply(User input) {
return input.getProfile().getEmail().equalsIgnoreCase(email);
}
@Override
public boolean test(User input) {
return apply(input);
}
}).orNull();
}

Expand Down