From: amwaterhouse Date: Wed, 5 Apr 2006 11:41:06 +0000 (+0000) Subject: Turn off validation for speed X-Git-Tag: Release_2_08~58 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=1b7c19a556c0a09859e8e46cd4e55484e5f944d2;p=jalview.git Turn off validation for speed --- diff --git a/src/jalview/gui/Jalview2XML.java b/src/jalview/gui/Jalview2XML.java index 5a4b03a..eb071e2 100755 --- a/src/jalview/gui/Jalview2XML.java +++ b/src/jalview/gui/Jalview2XML.java @@ -633,6 +633,7 @@ public class Jalview2XML JalviewModel object = new JalviewModel(); Unmarshaller unmar = new Unmarshaller(object); + unmar.setValidation(false); object = (JalviewModel) unmar.unmarshal( in ); af = LoadFromObject(object); @@ -752,7 +753,7 @@ public class Jalview2XML { anot[ae[aa].getPosition()] = new jalview.datamodel.Annotation(ae[aa].getDisplayCharacter(), ae[aa].getDescription(), - ae[aa].getSecondaryStructure().charAt(0), + ae[aa].getSecondaryStructure().length()==0?' ':ae[aa].getSecondaryStructure().charAt(0), ae[aa].getValue()); }