|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2012 the original author or authors. |
|
|
|
|
* Copyright 2002-2013 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -23,8 +23,7 @@ import org.springframework.util.Assert;
@@ -23,8 +23,7 @@ import org.springframework.util.Assert;
|
|
|
|
|
import org.springframework.util.ObjectUtils; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Static utility methods for composing |
|
|
|
|
* {@link org.springframework.aop.ClassFilter ClassFilters}. |
|
|
|
|
* Static utility methods for composing {@link ClassFilter ClassFilters}. |
|
|
|
|
* |
|
|
|
|
* @author Rod Johnson |
|
|
|
|
* @author Rob Harrop |
|
|
|
@ -98,8 +97,8 @@ public abstract class ClassFilters {
@@ -98,8 +97,8 @@ public abstract class ClassFilters {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean matches(Class<?> clazz) { |
|
|
|
|
for (int i = 0; i < this.filters.length; i++) { |
|
|
|
|
if (this.filters[i].matches(clazz)) { |
|
|
|
|
for (ClassFilter filter : this.filters) { |
|
|
|
|
if (filter.matches(clazz)) { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -133,8 +132,8 @@ public abstract class ClassFilters {
@@ -133,8 +132,8 @@ public abstract class ClassFilters {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean matches(Class<?> clazz) { |
|
|
|
|
for (int i = 0; i < this.filters.length; i++) { |
|
|
|
|
if (!this.filters[i].matches(clazz)) { |
|
|
|
|
for (ClassFilter filter : this.filters) { |
|
|
|
|
if (!filter.matches(clazz)) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|