import org.objectweb.asm.Opcodes;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.Collection;
public class BoundASTTransformation implements ASTSingleNodeTransformation, Opcodes {
<BUG>protected FieldNode pcsField;
public static boolean hasBoundAnnotation(AnnotatedNode node) {</BUG>
for (AnnotationNode annotation : (Collection<AnnotationNode>) node.getAnnotations()) {
<BUG>if (Bound.class.getName().equals(annotation.getClassNode().getName())) {
</BUG>
return true;

import org.objectweb.asm.Opcodes;
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.Collection;
public class BoundASTTransformation implements ASTSingleNodeTransformation, Opcodes {
protected FieldNode pcsField;
protected static ClassNode boundClassNode = new ClassNode(Bound.class);
protected ClassNode pcsClassNode = new ClassNode(PropertyChangeSupport.class);
public static boolean hasBoundAnnotation(AnnotatedNode node) {
for (AnnotationNode annotation : (Collection<AnnotationNode>) node.getAnnotations()) {
if (boundClassNode.equals(annotation.getClassNode())) {
return true;
