From 1b7c19a556c0a09859e8e46cd4e55484e5f944d2 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 5 Apr 2006 11:41:06 +0000 Subject: [PATCH] Turn off validation for speed --- src/jalview/gui/Jalview2XML.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()); } -- 1.7.10.2