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