Browse Source

Polishing

pull/202/merge
Juergen Hoeller 13 years ago committed by unknown
parent
commit
e298658ef0
  1. 5
      spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperationSourcePointcut.java
  2. 2
      spring-context/src/test/java/org/springframework/cache/annotation/AnnotationCacheOperationSourceTests.java

5
spring-context/src/main/java/org/springframework/cache/interceptor/CacheOperationSourcePointcut.java vendored

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2011 the original author or authors. * Copyright 2002-2012 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -47,8 +47,7 @@ abstract class CacheOperationSourcePointcut extends StaticMethodMatcherPointcut
return false; return false;
} }
CacheOperationSourcePointcut otherPc = (CacheOperationSourcePointcut) other; CacheOperationSourcePointcut otherPc = (CacheOperationSourcePointcut) other;
return ObjectUtils.nullSafeEquals(getCacheOperationSource(), return ObjectUtils.nullSafeEquals(getCacheOperationSource(), otherPc.getCacheOperationSource());
otherPc.getCacheOperationSource());
} }
@Override @Override

2
spring-context/src/test/java/org/springframework/cache/annotation/AnnotationCacheOperationSourceTest.java → spring-context/src/test/java/org/springframework/cache/annotation/AnnotationCacheOperationSourceTests.java vendored

@ -35,7 +35,7 @@ import org.springframework.util.ReflectionUtils;
/** /**
* @author Costin Leau * @author Costin Leau
*/ */
public class AnnotationCacheOperationSourceTest { public class AnnotationCacheOperationSourceTests {
private AnnotationCacheOperationSource source = new AnnotationCacheOperationSource(); private AnnotationCacheOperationSource source = new AnnotationCacheOperationSource();
Loading…
Cancel
Save