Browse Source

first bit of java 5 in the weaver module - will the build machine cope?

tags/V1_6_6
aclement 14 years ago
parent
commit
4852b21903
2 changed files with 3 additions and 2 deletions
  1. 1
    0
      weaver/.isJava5
  2. 2
    2
      weaver/src/org/aspectj/weaver/bcel/BcelAnnotation.java

+ 1
- 0
weaver/.isJava5 View File

@@ -0,0 +1 @@

+ 2
- 2
weaver/src/org/aspectj/weaver/bcel/BcelAnnotation.java View File

@@ -42,9 +42,9 @@ public class BcelAnnotation extends AbstractAnnotationAJ {
/**
* {@inheritDoc}
*/
public Set /* of String */getTargets() {
public Set<String> getTargets() {
if (!type.equals(UnresolvedType.AT_TARGET)) {
return Collections.EMPTY_SET;
return Collections.emptySet();
}
List values = bcelAnnotation.getValues();
ElementNameValuePairGen envp = (ElementNameValuePairGen) values.get(0);

Loading…
Cancel
Save