From ddfb2d3c58d898349a32e640e78074e4b67f066c Mon Sep 17 00:00:00 2001 From: Costin Leau Date: Thu, 1 Sep 2011 08:04:16 +0000 Subject: [PATCH] + remove unneeded catch for exceptions inside AbstractCacheAspect.aj --- .../springframework/cache/aspectj/AbstractCacheAspect.aj | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/org.springframework.aspects/src/main/java/org/springframework/cache/aspectj/AbstractCacheAspect.aj b/org.springframework.aspects/src/main/java/org/springframework/cache/aspectj/AbstractCacheAspect.aj index 2bbf992de15..9013be49fd3 100644 --- a/org.springframework.aspects/src/main/java/org/springframework/cache/aspectj/AbstractCacheAspect.aj +++ b/org.springframework.aspects/src/main/java/org/springframework/cache/aspectj/AbstractCacheAspect.aj @@ -65,12 +65,7 @@ public abstract aspect AbstractCacheAspect extends CacheAspectSupport { } }; - try { - return execute(ajInvocation, thisJoinPoint.getTarget(), method, thisJoinPoint.getArgs()); - } - catch (Exception ex) { - throw new UnsupportedOperationException("Should not throw exception", ex); - } + return execute(ajInvocation, thisJoinPoint.getTarget(), method, thisJoinPoint.getArgs()); } /**