Author: tallison
Date: Tue Mar 21 00:13:11 2017
New Revision: 1787891
URL: http://svn.apache.org/viewvc?rev=1787891&view=rev
Log:
60881 -- strip out system.set props for local test.
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/xssf/binary/XSSFBParser.java
poi/trunk/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSecureTempZip.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/xssf/binary/XSSFBParser.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/xssf/binary/XSSFBParser.java?rev=1787891&r1=1787890&r2=1787891&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/xssf/binary/XSSFBParser.java
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/xssf/binary/XSSFBParser.java Tue
Mar 21 00:13:11 2017
@@ -71,7 +71,7 @@ public abstract class XSSFBParser {
byte b2 = is.readByte();
b1 &= ~(1<<7); //unset highest bit
b2 &= ~(1<<7); //unset highest bit (if it exists?)
- recordId = (128*(int)b2)+(int)b1;
+ recordId = ((int)b2 << 7)+(int)b1;
} else {
recordId = (int)b1;
}
Modified:
poi/trunk/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSecureTempZip.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSecureTempZip.java?rev=1787891&r1=1787890&r2=1787891&view=diff
==============================================================================
---
poi/trunk/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSecureTempZip.java
(original)
+++
poi/trunk/src/ooxml/testcases/org/apache/poi/poifs/crypt/TestSecureTempZip.java
Tue Mar 21 00:13:11 2017
@@ -41,9 +41,6 @@ import org.junit.Test;
public class TestSecureTempZip {
- static {
- System.setProperty("POI.testdata.path", "C:/users/tallison/idea
projects/poi-trunk/test-data");
- }
/**
* Test case for #59841 - this is an example on how to use encrypted temp
files,
* which are streamed into POI opposed to having everything in memory
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]