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

View File

@ -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) {
result = ZipUtils.bytesToZip(result); try {
result = ZipUtils.bytesToZip(result);
} catch (IOException e) {
throw new IllegalStateException(e);
}
} }
return result; return result;
} }