Author: pete.muir(a)jboss.org
Date: 2008-12-07 07:16:02 -0500 (Sun, 07 Dec 2008)
New Revision: 432
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/event/EventObserver.java
Log:
ws
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/event/EventObserver.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/event/EventObserver.java 2008-12-07
12:13:21 UTC (rev 431)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/event/EventObserver.java 2008-12-07
12:16:02 UTC (rev 432)
@@ -102,15 +102,20 @@
{
//List<Annotation> bindingsArray = Arrays.asList(bindings);
//return bindingsArray.containsAll(this.eventBindings);
- for (Annotation x: eventBindings) {
+ for (Annotation x: eventBindings)
+ {
boolean found = false;
for (Annotation y: bindings)
{
- if ( MetaDataCache.instance().getBindingTypeModel(x.annotationType()).isEqual(x,
y) ) {
- found = true;
+ if (
MetaDataCache.instance().getBindingTypeModel(x.annotationType()).isEqual(x, y) )
+ {
+ found = true;
+ }
}
+ if (!found)
+ {
+ return false;
}
- if (!found) return false;
}
return true;
}