mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
Fix compile
This commit is contained in:
parent
dce29eda19
commit
65ee33a09f
@ -235,7 +235,7 @@ public class MindmapManagerImpl
|
|||||||
getHibernateTemplate().delete(mindMap);
|
getHibernateTemplate().delete(mindMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void saveHistory(@NotNull final Mindmap mindMap) throws IOException {
|
private void saveHistory(@NotNull final Mindmap mindMap) {
|
||||||
final MindMapHistory history = new MindMapHistory();
|
final MindMapHistory history = new MindMapHistory();
|
||||||
|
|
||||||
history.setZippedXml(mindMap.getZippedXml());
|
history.setZippedXml(mindMap.getZippedXml());
|
||||||
|
@ -78,11 +78,14 @@ public class Mindmap {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
public byte[] getZippedXml()
|
public byte[] getZippedXml(){
|
||||||
throws IOException {
|
|
||||||
byte[] result = this.xml;
|
byte[] result = this.xml;
|
||||||
if (result != null) {
|
if (result != null) {
|
||||||
|
try {
|
||||||
result = ZipUtils.bytesToZip(result);
|
result = ZipUtils.bytesToZip(result);
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw new IllegalStateException(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user