]> source.dussan.org Git - poi.git/commitdiff
add @Override annotation for updateOtherRecordReferences on PositionDependentRecordAt...
authorJaven O'Neal <onealj@apache.org>
Sat, 25 Jun 2016 05:10:22 +0000 (05:10 +0000)
committerJaven O'Neal <onealj@apache.org>
Sat, 25 Jun 2016 05:10:22 +0000 (05:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1750181 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hslf/record/DocumentEncryptionAtom.java
src/scratchpad/src/org/apache/poi/hslf/record/ExOleObjStg.java
src/scratchpad/src/org/apache/poi/hslf/record/PersistPtrHolder.java

index 99c6c68835b6eb281021c03cd69566893fe9a280..c21f89dd1305e171b45e9ad8315ffed4f476e8d1 100644 (file)
@@ -39,8 +39,8 @@ import org.apache.poi.util.LittleEndianInputStream;
  * @author Nick Burch
  */
 public final class DocumentEncryptionAtom extends PositionDependentRecordAtom {
-    private static long _type = 12052l;
-       private byte[] _header;
+    private static final long _type = 12052l;
+       private final byte[] _header;
        private EncryptionInfo ei;
 
        /**
@@ -123,7 +123,8 @@ public final class DocumentEncryptionAtom extends PositionDependentRecordAtom {
                out.write(data, 0, bos.getWriteIndex());
        }
 
+    @Override
     public void updateOtherRecordReferences(Map<Integer,Integer> oldToNewReferencesLookup) {
-        
+        // nothing to update
     }
 }
index 5ef523159f13756a5a94b23c19c97b00b87b9df5..7a875c5e5e7524ed1473953cd8ba85cd2a92df91 100644 (file)
@@ -41,7 +41,7 @@ public class ExOleObjStg extends RecordAtom implements PositionDependentRecord,
     /**
      * Record header.
      */
-    private byte[] _header;
+    private final byte[] _header;
 
     /**
      * Record data.
@@ -184,8 +184,8 @@ public class ExOleObjStg extends RecordAtom implements PositionDependentRecord,
         myLastOnDiskOffset = offset;
     }
 
+    @Override
     public void updateOtherRecordReferences(Map<Integer,Integer> oldToNewReferencesLookup) {
-        return;
+        // nothing to update
     }
-
 }
index b108241486be6981324258435120a4d8ebfc9ca2..b800f3e21946db41e59c2c0e910e9f3a8112e939 100644 (file)
@@ -45,7 +45,7 @@ import org.apache.poi.util.POILogger;
 
 public final class PersistPtrHolder extends PositionDependentRecordAtom
 {
-       private byte[] _header;
+       private final byte[] _header;
        private byte[] _ptrData; // Will need to update this once we allow updates to _slideLocations
        private long _type;
 
@@ -159,6 +159,7 @@ public final class PersistPtrHolder extends PositionDependentRecordAtom
         * At write-out time, update the references to the sheets to their
         *  new positions
         */
+       @Override
        public void updateOtherRecordReferences(Map<Integer,Integer> oldToNewReferencesLookup) {
                // Loop over all the slides we know about
                // Find where they used to live, and where they now live