From 605ac0e230b314e170a195de077980252a18c6ef Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Wed, 21 Jul 2010 19:18:11 +0000 Subject: [PATCH] Remove redundant @Aspect from CodeStyleAspect.aj This has been present for quite some time, and compilation at the command line was never a problem. However, after upgrading to STS 2.3.3.M2, errors started appearing in the Problems tab about 'duplicate @Aspect annotations'. This message was a bit misleading given that the underlying issue is that applying an @Aspect annotation on an aspect declared in .aj style is redundant. Andy Clement is investigating as well, but for now the reason for the change in behavior remains a mystery. --- .../springframework/aop/aspectj/autoproxy/CodeStyleAspect.aj | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/org.springframework.aspects/src/test/java/org/springframework/aop/aspectj/autoproxy/CodeStyleAspect.aj b/org.springframework.aspects/src/test/java/org/springframework/aop/aspectj/autoproxy/CodeStyleAspect.aj index bf16e144a9..f1038fe9bd 100644 --- a/org.springframework.aspects/src/test/java/org/springframework/aop/aspectj/autoproxy/CodeStyleAspect.aj +++ b/org.springframework.aspects/src/test/java/org/springframework/aop/aspectj/autoproxy/CodeStyleAspect.aj @@ -1,5 +1,5 @@ /* - * Copyright 2002-2007 the original author or authors. + * Copyright 2002-2010 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. @@ -16,12 +16,9 @@ package org.springframework.aop.aspectj.autoproxy; -import org.aspectj.lang.annotation.Aspect; - /** * @author Adrian Colyer */ -@Aspect public aspect CodeStyleAspect { private String foo;