|
|
@@ -3,8 +3,6 @@ package uk.ac.ic.wlgitbridge.writelatex.filestore.blob;
|
|
|
import uk.ac.ic.wlgitbridge.writelatex.filestore.node.AttachmentNode;
|
|
|
import uk.ac.ic.wlgitbridge.writelatex.model.db.PersistentStoreAPI;
|
|
|
|
|
|
-import java.util.Arrays;
|
|
|
-
|
|
|
/**
|
|
|
* Created by Winston on 14/11/14.
|
|
|
*/
|
|
|
@@ -21,15 +19,6 @@ public class ByteBlob extends Blob {
|
|
|
return contents;
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public boolean equals(Object obj) {
|
|
|
- if (!(obj instanceof ByteBlob)) {
|
|
|
- return false;
|
|
|
- }
|
|
|
- ByteBlob that = (ByteBlob) obj;
|
|
|
- return Arrays.equals(contents, that.contents);
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
public void updatePersistentStore(PersistentStoreAPI persistentStore, AttachmentNode node) {
|
|
|
persistentStore.addFileNodeBlob(node.getProjectName(), node.getFilePath(), node.isChanged(), contents);
|