aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2016-12-26 19:51:32 +0000
committerDominik Stadler <centic@apache.org>2016-12-26 19:51:32 +0000
commitce9a881d6301f173f03117f8498ff0d9d54055fd (patch)
treee2e7e7669977f4b72e66515f1128628c5dfdd6ad /src/java/org/apache/poi
parentf971a8488f9f675bb778113b1458befbdb825a30 (diff)
downloadpoi-ce9a881d6301f173f03117f8498ff0d9d54055fd.tar.gz
poi-ce9a881d6301f173f03117f8498ff0d9d54055fd.zip
Add mising @Override and other warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1776065 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/poi')
-rw-r--r--src/java/org/apache/poi/POIDocument.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/POIDocument.java b/src/java/org/apache/poi/POIDocument.java
index 70cce74d18..dc626da49b 100644
--- a/src/java/org/apache/poi/POIDocument.java
+++ b/src/java/org/apache/poi/POIDocument.java
@@ -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 implements Closeable {
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 implements Closeable {
*/
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 implements Closeable {
* <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) {