You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/03/15 16:32:46 UTC

svn commit: r923292 - /myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java

Author: lofwyr
Date: Mon Mar 15 15:32:46 2010
New Revision: 923292

URL: http://svn.apache.org/viewvc?rev=923292&view=rev
Log:
checkstyle

Modified:
    myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java

Modified: myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java?rev=923292&r1=923291&r2=923292&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java (original)
+++ myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java Mon Mar 15 15:32:46 2010
@@ -179,16 +179,18 @@ public class CreateComponentAnnotationVi
       StringTemplate componentStringTemplate = componentStringTemplateGroup.getInstanceOf("component");
       ComponentInfo componentInfo 
           = new ComponentInfo(decl.getQualifiedName(), componentTag.uiComponent(), componentTag.rendererType());
-/*      
+      
+/*
       String p = componentTag.uiComponentBaseClass();
       String c = componentTag.uiComponent();
       String m = c.substring(0, 36) + "Abstract" + c.substring(36);
       if (p.equals(m)) {
-        System.out.println("*********** ok   " + c);
+        getEnv().getMessager().printNotice("*********** ok   " + c);
       } else {
-        System.out.println("*********** diff " + c + " " + p);
+        getEnv().getMessager().printNotice("*********** diff " + c + " " + p);
       }
-*/      
+*/
+      
       componentInfo.setSuperClass(componentTag.uiComponentBaseClass());
       componentInfo.setComponentFamily(componentTag.componentFamily());
       componentInfo.setDescription(getDescription(decl));
@@ -421,7 +423,7 @@ public class CreateComponentAnnotationVi
         propertyInfo.setDeprecated(decl.getAnnotation(Deprecated.class) != null);
         propertyInfo.setDescription(getDescription(decl));
         if (properties.containsKey(name)) {
-          System.out.println("Info: Redefinition of attribute '" + name + "'.");
+          getEnv().getMessager().printWarning("Redefinition of attribute '" + name + "'.");
         }
         properties.put(name, propertyInfo);
       }