User: pathoss 
  Date: 02/05/12 08:21:15

  Modified:    modules/apache/src/xdoclet/modules/apache/struts Tag:
                        MODULE_REFACTORING_BRANCH
                        StrutsFormTagsHandler.java
  Log:
  Refactored. Now all the modules compile.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.5   +12 -12    
xdoclet/modules/apache/src/xdoclet/modules/apache/struts/Attic/StrutsFormTagsHandler.java
  
  Index: StrutsFormTagsHandler.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/apache/src/xdoclet/modules/apache/struts/Attic/StrutsFormTagsHandler.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -w -r1.1.2.4 -r1.1.2.5
  --- StrutsFormTagsHandler.java        28 Apr 2002 22:25:20 -0000      1.1.2.4
  +++ StrutsFormTagsHandler.java        12 May 2002 15:21:14 -0000      1.1.2.5
  @@ -23,8 +23,8 @@
   import xjavadoc.XMethod;
   import xjavadoc.XTag;
   
  -import org.apache.log4j.Category;
  -import xdoclet.util.Log;
  +import org.apache.commons.logging.Log;
  +import xdoclet.util.LogUtil;
   import xdoclet.modules.ejb.EjbTagsHandler;
   import xdoclet.modules.ejb.entity.PersistentTagsHandler;
   
  @@ -34,7 +34,7 @@
    *
    * @author Dmitri Colebatch ([EMAIL PROTECTED])
    * @created Oct 19, 2001
  - * @version $Revision: 1.1.2.4 $
  + * @version $Revision: 1.1.2.5 $
    */
   public class StrutsFormTagsHandler extends EjbTagsHandler {
   
  @@ -79,19 +79,19 @@
                // form name, or all persistent fields if  include-all="true" is set
                // pk fields are included implicitly, unless include-pk="false" is 
specified.
   
  -             Category cat = Log.getCategory(StrutsFormTagsHandler.class, 
"forAllFormFields");
  +             Log log = LogUtil.getLog(StrutsFormTagsHandler.class, 
"forAllFormFields");
                XClass cur_class = getCurrentClass();
                Map foundFields = new HashMap();
   
  -             if (cat.isDebugEnabled()) {
  -                     cat.debug("BEGIN-----------------------------------------");
  +             if (log.isDebugEnabled()) {
  +                     log.debug("BEGIN-----------------------------------------");
                }
   
                do {
                        pushCurrentClass(cur_class);
   
  -                     if (cat.isDebugEnabled()) {
  -                             cat.debug("-----CLASS=" + getCurrentClass().name() + 
"----------------");
  +                     if (log.isDebugEnabled()) {
  +                             log.debug("-----CLASS=" + getCurrentClass().name() + 
"----------------");
                        }
   
                        XMethod[] methods = getCurrentClass().methods();
  @@ -102,8 +102,8 @@
                                if 
(MethodTagsHandler.isGetter(getCurrentMethod().name()) && 
!foundFields.containsKey(getCurrentMethod().name())) {
                                        //
                                        if (useMethodInForm(getCurrentMethod())) {
  -                                             if (cat.isDebugEnabled()) {
  -                                                     cat.debug("METHOD(I=" + 
getCurrentMethod().name());
  +                                             if (log.isDebugEnabled()) {
  +                                                     log.debug("METHOD(I=" + 
getCurrentMethod().name());
                                                }
   
                                                // Store that we found this field so 
we don't add it twice
  @@ -125,8 +125,8 @@
                        cur_class = cur_class.superclass();
                } while (true);
   
  -             if (cat.isDebugEnabled()) {
  -                     cat.debug("END-------------------------------------------");
  +             if (log.isDebugEnabled()) {
  +                     log.debug("END-------------------------------------------");
                }
        }
   
  
  
  

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to