Author: fanningpj
Date: Tue Feb 27 14:24:50 2018
New Revision: 1825457
URL: http://svn.apache.org/viewvc?rev=1825457&view=rev
Log:
use Integer.toString to convert ints to strings
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java
poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableRow.java
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java?rev=1825457&r1=1825456&r2=1825457&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFParagraph.java
Tue Feb 27 14:24:50 2018
@@ -902,7 +902,7 @@ public class XWPFParagraph implements IB
public void setSpacingAfter(int spaces) {
CTSpacing spacing = getCTSpacing(true);
if (spacing != null) {
- BigInteger bi = new BigInteger("" + spaces);
+ BigInteger bi = new BigInteger(Integer.toString(spaces));
spacing.setAfter(bi);
}
@@ -939,7 +939,7 @@ public class XWPFParagraph implements IB
*/
public void setSpacingAfterLines(int spaces) {
CTSpacing spacing = getCTSpacing(true);
- BigInteger bi = new BigInteger("" + spaces);
+ BigInteger bi = new BigInteger(Integer.toString(spaces));
spacing.setAfterLines(bi);
}
@@ -967,7 +967,7 @@ public class XWPFParagraph implements IB
*/
public void setSpacingBefore(int spaces) {
CTSpacing spacing = getCTSpacing(true);
- BigInteger bi = new BigInteger("" + spaces);
+ BigInteger bi = new BigInteger(Integer.toString(spaces));
spacing.setBefore(bi);
}
@@ -998,7 +998,7 @@ public class XWPFParagraph implements IB
*/
public void setSpacingBeforeLines(int spaces) {
CTSpacing spacing = getCTSpacing(true);
- BigInteger bi = new BigInteger("" + spaces);
+ BigInteger bi = new BigInteger(Integer.toString(spaces));
spacing.setBeforeLines(bi);
}
@@ -1119,7 +1119,7 @@ public class XWPFParagraph implements IB
*/
public void setIndentationLeft(int indentation) {
CTInd indent = getCTInd(true);
- BigInteger bi = new BigInteger("" + indentation);
+ BigInteger bi = new BigInteger(Integer.toString(indentation));
indent.setLeft(bi);
}
@@ -1158,7 +1158,7 @@ public class XWPFParagraph implements IB
*/
public void setIndentationRight(int indentation) {
CTInd indent = getCTInd(true);
- BigInteger bi = new BigInteger("" + indentation);
+ BigInteger bi = new BigInteger(Integer.toString(indentation));
indent.setRight(bi);
}
@@ -1196,7 +1196,7 @@ public class XWPFParagraph implements IB
public void setIndentationHanging(int indentation) {
CTInd indent = getCTInd(true);
- BigInteger bi = new BigInteger("" + indentation);
+ BigInteger bi = new BigInteger(Integer.toString(indentation));
indent.setHanging(bi);
}
@@ -1237,7 +1237,7 @@ public class XWPFParagraph implements IB
*/
public void setIndentationFirstLine(int indentation) {
CTInd indent = getCTInd(true);
- BigInteger bi = new BigInteger("" + indentation);
+ BigInteger bi = new BigInteger(Integer.toString(indentation));
indent.setFirstLine(bi);
}
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java?rev=1825457&r1=1825456&r2=1825457&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFRun.java Tue Feb
27 14:24:50 2018
@@ -807,7 +807,7 @@ public class XWPFRun implements ISDTCont
*/
@Override
public void setFontSize(int size) {
- BigInteger bint = new BigInteger("" + size);
+ BigInteger bint = new BigInteger(Integer.toString(size));
CTRPr pr = run.isSetRPr() ? run.getRPr() : run.addNewRPr();
CTHpsMeasure ctSize = pr.isSetSz() ? pr.getSz() : pr.addNewSz();
ctSize.setVal(bint.multiply(new BigInteger("2")));
@@ -851,7 +851,7 @@ public class XWPFRun implements ISDTCont
* values will lower it.
*/
public void setTextPosition(int val) {
- BigInteger bint = new BigInteger("" + val);
+ BigInteger bint = new BigInteger(Integer.toString(val));
CTRPr pr = run.isSetRPr() ? run.getRPr() : run.addNewRPr();
CTSignedHpsMeasure position = pr.isSetPosition() ? pr.getPosition() :
pr.addNewPosition();
position.setVal(bint);
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java?rev=1825457&r1=1825456&r2=1825457&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTable.java Tue
Feb 27 14:24:50 2018
@@ -278,7 +278,7 @@ public class XWPFTable implements IBodyE
public void setWidth(int width) {
CTTblPr tblPr = getTblPr();
CTTblWidth tblWidth = tblPr.isSetTblW() ? tblPr.getTblW() :
tblPr.addNewTblW();
- tblWidth.setW(new BigInteger("" + width));
+ tblWidth.setW(new BigInteger(Integer.toString(width)));
}
/**
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableRow.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableRow.java?rev=1825457&r1=1825456&r2=1825457&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableRow.java
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xwpf/usermodel/XWPFTableRow.java
Tue Feb 27 14:24:50 2018
@@ -115,7 +115,7 @@ public class XWPFTableRow {
public void setHeight(int height) {
CTTrPr properties = getTrPr();
CTHeight h = properties.sizeOfTrHeightArray() == 0 ?
properties.addNewTrHeight() : properties.getTrHeightArray(0);
- h.setVal(new BigInteger("" + height));
+ h.setVal(new BigInteger(Integer.toString(height)));
}
private CTTrPr getTrPr() {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]