You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2016/12/26 19:51:33 UTC
svn commit: r1776065 - /poi/trunk/src/java/org/apache/poi/POIDocument.java
Author: centic
Date: Mon Dec 26 19:51:32 2016
New Revision: 1776065
URL: http://svn.apache.org/viewvc?rev=1776065&view=rev
Log:
Add mising @Override and other warnings
Modified:
poi/trunk/src/java/org/apache/poi/POIDocument.java
Modified: poi/trunk/src/java/org/apache/poi/POIDocument.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/POIDocument.java?rev=1776065&r1=1776064&r2=1776065&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/POIDocument.java (original)
+++ poi/trunk/src/java/org/apache/poi/POIDocument.java Mon Dec 26 19:51:32 2016
@@ -27,7 +27,6 @@ import java.io.OutputStream;
import java.util.List;
import org.apache.poi.hpsf.DocumentSummaryInformation;
-import org.apache.poi.hpsf.MutablePropertySet;
import org.apache.poi.hpsf.PropertySet;
import org.apache.poi.hpsf.PropertySetFactory;
import org.apache.poi.hpsf.SummaryInformation;
@@ -59,7 +58,7 @@ public abstract class POIDocument implem
private static final POILogger logger = POILogFactory.getLogger(POIDocument.class);
/* Have the property streams been read yet? (Only done on-demand) */
- private boolean initialized = false;
+ private boolean initialized;
private static final String[] encryptedStreamNames = { "EncryptedSummary" };
@@ -299,7 +298,7 @@ public abstract class POIDocument implem
*/
protected void writePropertySet(String name, PropertySet set, NPOIFSFileSystem outFS) throws IOException {
try {
- MutablePropertySet mSet = new MutablePropertySet(set);
+ PropertySet mSet = new PropertySet(set);
ByteArrayOutputStream bOut = new ByteArrayOutputStream();
mSet.write(bOut);
@@ -392,6 +391,7 @@ public abstract class POIDocument implem
* <p>Once {@link #close()} has been called, no further operations
* should be called on the document.
*/
+ @Override
public void close() throws IOException {
if (directory != null) {
if (directory.getNFileSystem() != null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org