]> source.dussan.org Git - aspectj.git/commitdiff
first bit of java 5 in the weaver module - will the build machine cope?
authoraclement <aclement>
Mon, 7 Sep 2009 00:41:22 +0000 (00:41 +0000)
committeraclement <aclement>
Mon, 7 Sep 2009 00:41:22 +0000 (00:41 +0000)
weaver/.isJava5 [new file with mode: 0644]
weaver/src/org/aspectj/weaver/bcel/BcelAnnotation.java

diff --git a/weaver/.isJava5 b/weaver/.isJava5
new file mode 100644 (file)
index 0000000..136d063
--- /dev/null
@@ -0,0 +1 @@
+  
\ No newline at end of file
index 9dfaa22c6d888b203242f5f084b3251b25bf5f93..a7da4be1e1e40a2295c16aba67d3496c718c8bec 100644 (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);