Fix compile

This commit is contained in:
Paulo Gustavo Veiga 2013-03-29 14:57:21 -03:00
parent dce29eda19
commit 65ee33a09f
2 changed files with 7 additions and 4 deletions

View File

@ -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());

View File

@ -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;
}