rsitze      02/05/09 11:29:37

  Modified:    java/src/org/apache/axis/encoding
                        DeserializationContextImpl.java
  Log:
  Remove NLS from log.debug entry/exit, as per logging guidelines
  
  Revision  Changes    Path
  1.27      +30 -15    
xml-axis/java/src/org/apache/axis/encoding/DeserializationContextImpl.java
  
  Index: DeserializationContextImpl.java
  ===================================================================
  RCS file: 
/home/cvs/xml-axis/java/src/org/apache/axis/encoding/DeserializationContextImpl.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- DeserializationContextImpl.java   29 Apr 2002 19:41:17 -0000      1.26
  +++ DeserializationContextImpl.java   9 May 2002 18:29:37 -0000       1.27
  @@ -722,12 +722,16 @@
        */
       public void endDocument() throws SAXException {
           if (log.isDebugEnabled()) {
  -            log.debug(JavaUtils.getMessage("endDoc00"));
  +            log.debug("Enter: DeserializationContextImpl::endDocument()");
           }
           if (!doneParsing && (recorder != null))
               recorder.endDocument();
           
           doneParsing = true;
  +        
  +        if (log.isDebugEnabled()) {
  +            log.debug("Exit: DeserializationContextImpl::endDocument()");
  +        }
       }
       /**
        * Return if done parsing document.
  @@ -745,6 +749,10 @@
       public void startPrefixMapping(String prefix, String uri)
           throws SAXException
       {
  +        if (log.isDebugEnabled()) {
  +            log.debug("Enter: DeserializationContextImpl::startPrefixMapping(" + 
prefix + ", " + uri + ")");
  +        }
  +        
           if (!doneParsing && (recorder != null))
               recorder.startPrefixMapping(prefix, uri);
           
  @@ -757,20 +765,20 @@
               namespaces.add(uri, "");
           }
          
  -        if (log.isDebugEnabled()) {
  -            log.debug(JavaUtils.getMessage("startPrefix00", prefix, uri));
  -        }
  -        
           SOAPHandler handler = getTopHandler();
           if (handler != null)
               handler.startPrefixMapping(prefix, uri);
  +
  +        if (log.isDebugEnabled()) {
  +            log.debug("Exit: DeserializationContextImpl::startPrefixMapping()");
  +        }
       }
       
       public void endPrefixMapping(String prefix)
           throws SAXException
       {
           if (log.isDebugEnabled()) {
  -            log.debug(JavaUtils.getMessage("endPrefix00", prefix));
  +            log.debug("Enter: DeserializationContextImpl::endPrefixMapping(" + 
prefix + ")");
           }
           
           if (!doneParsing && (recorder != null))
  @@ -779,6 +787,10 @@
           SOAPHandler handler = getTopHandler();
           if (handler != null)
               handler.endPrefixMapping(prefix);
  +
  +        if (log.isDebugEnabled()) {
  +            log.debug("Exit: DeserializationContextImpl::endPrefixMapping()");
  +        }
       }
       
       public void setDocumentLocator(Locator locator) 
  @@ -824,13 +836,12 @@
                                String qName, Attributes attributes)
           throws SAXException
       {
  -        SOAPHandler nextHandler = null;
  -
           if (log.isDebugEnabled()) {
  -            log.debug(JavaUtils.getMessage("startElem00",
  -                    "['" + namespace + "' " + localName + "]"));
  +            log.debug("Enter: DeserializationContextImpl::startElement(" + 
namespace + ", " + localName + ")");
           }
           
  +        SOAPHandler nextHandler = null;
  +
           String prefix = "";
           int idx = qName.indexOf(":");
           if (idx > 0)
  @@ -863,6 +874,10 @@
           namespaces.push();
           
           startOfMappingsPos = -1;
  +        
  +        if (log.isDebugEnabled()) {
  +            log.debug("Exit: DeserializationContextImpl::startElement()");
  +        }
       }
   
       /**
  @@ -872,8 +887,7 @@
           throws SAXException
       {
           if (log.isDebugEnabled()) {
  -            log.debug(JavaUtils.getMessage("endElem00",
  -                    "['" + namespace + "' " + localName + "]"));
  +            log.debug("Enter: DeserializationContextImpl::endElement(" + namespace 
+ ", " + localName + ")");
           }
           
           if (!doneParsing && (recorder != null))
  @@ -887,14 +901,15 @@
                   getTopHandler().onEndChild(namespace, localName, this);
               } else {
                   // We should be done!
  -                if (log.isDebugEnabled()) {
  -                    log.debug(JavaUtils.getMessage("endDoc01"));
  -                }
               }
               
           } finally {
               if (curElement != null)
                   curElement = (MessageElement)curElement.getParentElement();
  +        
  +             if (log.isDebugEnabled()) {
  +             log.debug("Exit: DeserializationContextImpl::endElement()");
  +             }
           }
       }
   
  
  
  


Reply via email to