add @Override annotation for updateOtherRecordReferences on PositionDependentRecordAtom descendents

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1750181 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-06-25 05:10:22 +00:00
parent e72ad899b3
commit a9cd695098
3 changed files with 9 additions and 7 deletions

View 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
}
}

View 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
}
}

View 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