myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r880780 - /myfaces/extensions/scripting/trunk/core/myfaces2-extensions/src/main/java/org/apache/myfaces/scripting/jsf2/annotation/JavaAnnotationScanner.java
Date Mon, 16 Nov 2009 14:58:04 GMT
Author: werpu
Date: Mon Nov 16 14:58:04 2009
New Revision: 880780

URL: http://svn.apache.org/viewvc?rev=880780&view=rev
Log:
https://issues.apache.org/jira/browse/EXTSCRIPT-26
annotation works mostly done now

Modified:
    myfaces/extensions/scripting/trunk/core/myfaces2-extensions/src/main/java/org/apache/myfaces/scripting/jsf2/annotation/JavaAnnotationScanner.java

Modified: myfaces/extensions/scripting/trunk/core/myfaces2-extensions/src/main/java/org/apache/myfaces/scripting/jsf2/annotation/JavaAnnotationScanner.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/scripting/trunk/core/myfaces2-extensions/src/main/java/org/apache/myfaces/scripting/jsf2/annotation/JavaAnnotationScanner.java?rev=880780&r1=880779&r2=880780&view=diff
==============================================================================
--- myfaces/extensions/scripting/trunk/core/myfaces2-extensions/src/main/java/org/apache/myfaces/scripting/jsf2/annotation/JavaAnnotationScanner.java
(original)
+++ myfaces/extensions/scripting/trunk/core/myfaces2-extensions/src/main/java/org/apache/myfaces/scripting/jsf2/annotation/JavaAnnotationScanner.java
Mon Nov 16 14:58:04 2009
@@ -50,6 +50,7 @@
     JavaDocBuilder _builder = new JavaDocBuilder();
     Map<String, String> _registeredAnnotations = new HashMap<String, String>();
     LinkedList<String> _sourcePaths = new LinkedList<String>();
+    private static final String JAVAX_FACES = "javax.faces";
 
     public JavaAnnotationScanner() {
         initDefaultListeners();
@@ -73,7 +74,7 @@
             return retVal;
         }
         for (Annotation ann : anns) {
-            if (ann.getType().getValue().startsWith("javax.faces")) {
+            if (ann.getType().getValue().startsWith(JAVAX_FACES)) {
                 retVal.add(ann);
             }
         }
@@ -86,7 +87,7 @@
             return retVal;
         }
         for (java.lang.annotation.Annotation ann : anns) {
-            if (ann.annotationType().getName().startsWith("javax.faces")) {
+            if (ann.annotationType().getName().startsWith(JAVAX_FACES)) {
                 retVal.add(ann);
             }
 



Mime
View raw message