aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2017-12-15 09:09:50 +0000
committerPJ Fanning <fanningpj@apache.org>2017-12-15 09:09:50 +0000
commit845c7fcdea412c15e02eea62c7f6df54a6c11274 (patch)
tree23255bbaa91a5d7718bf2530b8355e996c042565 /src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java
parente74e6d749af9b7337a1b491fc911548cd71b2f30 (diff)
downloadpoi-845c7fcdea412c15e02eea62c7f6df54a6c11274.tar.gz
poi-845c7fcdea412c15e02eea62c7f6df54a6c11274.zip
Bug-61906 add API for working with RichStringText and deprecate API methods that use CTRst
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1818247 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java')
-rw-r--r--src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java
index 3c944d4cde..53eb543cad 100644
--- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java
+++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFRichTextString.java
@@ -99,6 +99,7 @@ public class XSSFRichTextString implements RichTextString {
/**
* Create a rich text string from the supplied XML bean
*/
+ @Internal
public XSSFRichTextString(CTRst st) {
this.st = st;
}
@@ -324,7 +325,7 @@ public class XSSFRichTextString implements RichTextString {
*
* @param s new string value
*/
- public void setString(String s){
+ public void setString(String s) {
clearFormatting();
st.setT(s);
preserveSpaces(st.xgetT());
@@ -496,7 +497,7 @@ public class XSSFRichTextString implements RichTextString {
* @param value the string to decode
* @return the decoded string
*/
- static String utfDecode(String value){
+ static String utfDecode(String value) {
if(value == null || !value.contains("_x")) {
return value;
}