diff options
Diffstat (limited to 'src/java/org/apache')
6 files changed, 7 insertions, 7 deletions
diff --git a/src/java/org/apache/poi/hssf/record/TabIdRecord.java b/src/java/org/apache/poi/hssf/record/TabIdRecord.java index 843d2aa774..e1e9052b0c 100644 --- a/src/java/org/apache/poi/hssf/record/TabIdRecord.java +++ b/src/java/org/apache/poi/hssf/record/TabIdRecord.java @@ -50,7 +50,7 @@ public final class TabIdRecord extends StandardRecord { * @param array of tab id's {0,1,2} */ public void setTabIdArray(short[] array) { - _tabids = array; + _tabids = array.clone(); } public String toString() { diff --git a/src/java/org/apache/poi/poifs/crypt/CipherAlgorithm.java b/src/java/org/apache/poi/poifs/crypt/CipherAlgorithm.java index cee49d2bee..5b5b1e186d 100644 --- a/src/java/org/apache/poi/poifs/crypt/CipherAlgorithm.java +++ b/src/java/org/apache/poi/poifs/crypt/CipherAlgorithm.java @@ -53,7 +53,7 @@ public enum CipherAlgorithm { this.jceId = jceId;
this.ecmaId = ecmaId;
this.defaultKeySize = defaultKeySize;
- this.allowedKeySize = allowedKeySize;
+ this.allowedKeySize = allowedKeySize.clone();
this.blockSize = blockSize;
this.encryptedVerifierHashLength = encryptedVerifierHashLength;
this.xmlId = xmlId;
diff --git a/src/java/org/apache/poi/poifs/storage/BlockListImpl.java b/src/java/org/apache/poi/poifs/storage/BlockListImpl.java index b7c6a0ccff..7a05aae227 100644 --- a/src/java/org/apache/poi/poifs/storage/BlockListImpl.java +++ b/src/java/org/apache/poi/poifs/storage/BlockListImpl.java @@ -41,7 +41,7 @@ abstract class BlockListImpl implements BlockList { */ protected void setBlocks(final ListManagedBlock [] blocks) { - _blocks = blocks; + _blocks = blocks.clone(); } /** diff --git a/src/java/org/apache/poi/sl/draw/DrawTextParagraph.java b/src/java/org/apache/poi/sl/draw/DrawTextParagraph.java index 735205ec4e..fbb40bb238 100644 --- a/src/java/org/apache/poi/sl/draw/DrawTextParagraph.java +++ b/src/java/org/apache/poi/sl/draw/DrawTextParagraph.java @@ -365,11 +365,11 @@ public class DrawTextParagraph implements Drawable { Double leftMargin = paragraph.getLeftMargin();
if (leftMargin == null) {
// if the marL attribute is omitted, then a value of 347663 is implied
- leftMargin = Units.toPoints(347663*(indentLevel+1));
+ leftMargin = Units.toPoints(347663L*(indentLevel+1));
}
Double indent = paragraph.getIndent();
if (indent == null) {
- indent = Units.toPoints(347663*indentLevel);
+ indent = Units.toPoints(347663L*indentLevel);
}
Double rightMargin = paragraph.getRightMargin();
if (rightMargin == null) {
diff --git a/src/java/org/apache/poi/ss/formula/ptg/ArrayPtg.java b/src/java/org/apache/poi/ss/formula/ptg/ArrayPtg.java index b21936bec4..de107a2cbd 100644 --- a/src/java/org/apache/poi/ss/formula/ptg/ArrayPtg.java +++ b/src/java/org/apache/poi/ss/formula/ptg/ArrayPtg.java @@ -60,7 +60,7 @@ public final class ArrayPtg extends Ptg { _reserved2Byte = reserved2; _nColumns = nColumns; _nRows = nRows; - _arrayValues = arrayValues; + _arrayValues = arrayValues.clone(); } /** * @param values2d array values arranged in rows diff --git a/src/java/org/apache/poi/ss/util/SSCellRange.java b/src/java/org/apache/poi/ss/util/SSCellRange.java index c1973b443e..6a44a81f6b 100644 --- a/src/java/org/apache/poi/ss/util/SSCellRange.java +++ b/src/java/org/apache/poi/ss/util/SSCellRange.java @@ -117,7 +117,7 @@ public final class SSCellRange<K extends Cell> implements CellRange<K> { private int _index; public ArrayIterator(D[] array) { - _array = array; + _array = array.clone(); _index = 0; } public boolean hasNext() { |