From ce9a881d6301f173f03117f8498ff0d9d54055fd Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Mon, 26 Dec 2016 19:51:32 +0000 Subject: [PATCH] Add mising @Override and other warnings git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1776065 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/POIDocument.java | 6 +++--- 1 file 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 { *

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) { -- 2.39.5