You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2011/10/31 13:54:20 UTC
svn commit: r1195436 -
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/OMText.java
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();
/**