DATACMNS-867 - Rework utility classes.

Removed the additional methods that reflectively checked for the Stream type and whether a Method instance is a default method. Turned utility classes into interfaces where possible. Make use of Lombok's @UtilityClass where not.

Removed obsolete implementation class in StreamUtils in favor of a lambda.
This commit is contained in:
Oliver Gierke
2017-03-14 09:39:30 +01:00
parent 6e3114f3cb
commit 1c60ea8d36
9 changed files with 60 additions and 116 deletions

View File

@@ -57,7 +57,7 @@ public class DefaultMethodInvokingMethodInterceptor implements MethodInterceptor
Method method = invocation.getMethod();
if (!org.springframework.data.util.ReflectionUtils.isDefaultMethod(method)) {
if (!method.isDefault()) {
return invocation.proceed();
}