[weld-commits] Weld SVN: r6370 - extensions/trunk/src/main/java/org/jboss/weld/extensions/util.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Tue Jun 1 09:58:27 EDT 2010
Author: shane.bryzak at jboss.com
Date: 2010-06-01 09:58:26 -0400 (Tue, 01 Jun 2010)
New Revision: 6370
Modified:
extensions/trunk/src/main/java/org/jboss/weld/extensions/util/AnnotatedBeanProperty.java
Log:
minor
Modified: extensions/trunk/src/main/java/org/jboss/weld/extensions/util/AnnotatedBeanProperty.java
===================================================================
--- extensions/trunk/src/main/java/org/jboss/weld/extensions/util/AnnotatedBeanProperty.java 2010-06-01 13:55:09 UTC (rev 6369)
+++ extensions/trunk/src/main/java/org/jboss/weld/extensions/util/AnnotatedBeanProperty.java 2010-06-01 13:58:26 UTC (rev 6370)
@@ -29,6 +29,8 @@
}
}
+ private static final AnnotationMatcher defaultMatcher = new DefaultAnnotationMatcher();
+
private static class AnnotatedMatcher implements FieldMatcher, MethodMatcher
{
private Class<? extends Annotation> annotationClass;
@@ -81,8 +83,8 @@
public AnnotatedBeanProperty(Class<?> cls, Class<T> annotationClass,
AnnotationMatcher annotationMatcher)
{
- super(cls, new AnnotatedMatcher(annotationClass, annotationMatcher != null ? annotationMatcher : new DefaultAnnotationMatcher()),
- new AnnotatedMatcher(annotationClass, annotationMatcher != null ? annotationMatcher : new DefaultAnnotationMatcher()));
+ super(cls, new AnnotatedMatcher(annotationClass, annotationMatcher != null ? annotationMatcher : defaultMatcher),
+ new AnnotatedMatcher(annotationClass, annotationMatcher != null ? annotationMatcher : defaultMatcher));
if (((AnnotatedMatcher) getFieldMatcher()).getMatch() != null)
{
More information about the weld-commits
mailing list