Author: fanningpj
Date: Thu Sep 27 21:22:24 2018
New Revision: 1842171
URL: http://svn.apache.org/viewvc?rev=1842171&view=rev
Log:
make OPCPackage#close() unsynchronized and add javadoc note saying method is
not thread-safe
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java?rev=1842171&r1=1842170&r2=1842171&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java
(original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java Thu
Sep 27 21:22:24 2018
@@ -415,11 +415,13 @@ public abstract class OPCPackage impleme
* If your package is open read only, then you should call {@link
#revert()}
* when finished with the package.
*
+ * This method is not thread-safe.
+ *
* @throws IOException
* If an IO exception occur during the saving process.
*/
@Override
- public synchronized void close() throws IOException {
+ public void close() throws IOException {
if (this.packageAccess == PackageAccess.READ) {
logger.log(POILogger.WARN,
"The close() method is intended to SAVE a
package. This package is open in READ ONLY mode, use the revert() method
instead !");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]