mirror of https://github.com/apache/poi.git
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:
parent
e72ad899b3
commit
a9cd695098
|
@ -39,8 +39,8 @@ import org.apache.poi.util.LittleEndianInputStream;
|
||||||
* @author Nick Burch
|
* @author Nick Burch
|
||||||
*/
|
*/
|
||||||
public final class DocumentEncryptionAtom extends PositionDependentRecordAtom {
|
public final class DocumentEncryptionAtom extends PositionDependentRecordAtom {
|
||||||
private static long _type = 12052l;
|
private static final long _type = 12052l;
|
||||||
private byte[] _header;
|
private final byte[] _header;
|
||||||
private EncryptionInfo ei;
|
private EncryptionInfo ei;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -123,7 +123,8 @@ public final class DocumentEncryptionAtom extends PositionDependentRecordAtom {
|
||||||
out.write(data, 0, bos.getWriteIndex());
|
out.write(data, 0, bos.getWriteIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void updateOtherRecordReferences(Map<Integer,Integer> oldToNewReferencesLookup) {
|
public void updateOtherRecordReferences(Map<Integer,Integer> oldToNewReferencesLookup) {
|
||||||
|
// nothing to update
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ public class ExOleObjStg extends RecordAtom implements PositionDependentRecord,
|
||||||
/**
|
/**
|
||||||
* Record header.
|
* Record header.
|
||||||
*/
|
*/
|
||||||
private byte[] _header;
|
private final byte[] _header;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Record data.
|
* Record data.
|
||||||
|
@ -184,8 +184,8 @@ public class ExOleObjStg extends RecordAtom implements PositionDependentRecord,
|
||||||
myLastOnDiskOffset = offset;
|
myLastOnDiskOffset = offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void updateOtherRecordReferences(Map<Integer,Integer> oldToNewReferencesLookup) {
|
public void updateOtherRecordReferences(Map<Integer,Integer> oldToNewReferencesLookup) {
|
||||||
return;
|
// nothing to update
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ import org.apache.poi.util.POILogger;
|
||||||
|
|
||||||
public final class PersistPtrHolder extends PositionDependentRecordAtom
|
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 byte[] _ptrData; // Will need to update this once we allow updates to _slideLocations
|
||||||
private long _type;
|
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
|
* At write-out time, update the references to the sheets to their
|
||||||
* new positions
|
* new positions
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void updateOtherRecordReferences(Map<Integer,Integer> oldToNewReferencesLookup) {
|
public void updateOtherRecordReferences(Map<Integer,Integer> oldToNewReferencesLookup) {
|
||||||
// Loop over all the slides we know about
|
// Loop over all the slides we know about
|
||||||
// Find where they used to live, and where they now live
|
// Find where they used to live, and where they now live
|
||||||
|
|
Loading…
Reference in New Issue