Author: veithen
Date: Mon Oct 31 12:54:19 2011
New Revision: 1195436

URL: http://svn.apache.org/viewvc?rev=1195436&view=rev
Log:
Deprecated OMText#getTextAsQName(). This method is unsafe if the underlying 
parser is non coalescing, and a better alternative exists: 
OMElement#getTextAsQName().

Modified:
    
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMText.java

Modified: 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMText.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMText.java?rev=1195436&r1=1195435&r2=1195436&view=diff
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMText.java
 (original)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMText.java
 Mon Oct 31 12:54:19 2011
@@ -59,6 +59,11 @@ public interface OMText extends OMNode {
 
     boolean isCharacters();
 
+    /**
+     * @deprecated If the underlying parser is non coalescing, then this 
method may unexpectedly
+     *             fail or return an incorrect result. Always use {@link 
OMElement#getTextAsQName()}
+     *             to get the QName value of an element.
+     */
     QName getTextAsQName();
 
     /**


Reply via email to