From: jprocter Date: Thu, 28 Jun 2007 14:16:55 +0000 (+0000) Subject: use of config class X-Git-Tag: Release_0.2~108 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=61966e1add4b7705ff7b5f1e1239156c06f9abd7;p=vamsas.git use of config class git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@412 be28352e-c001-0410-b1a7-c7978e42abec --- diff --git a/src/uk/ac/vamsas/client/simpleclient/ClientDocument.java b/src/uk/ac/vamsas/client/simpleclient/ClientDocument.java index 9513668..ef0a7d5 100644 --- a/src/uk/ac/vamsas/client/simpleclient/ClientDocument.java +++ b/src/uk/ac/vamsas/client/simpleclient/ClientDocument.java @@ -175,7 +175,8 @@ public class ClientDocument extends uk.ac.vamsas.client.ClientDocument implement // Should retrieve original version and compare - unless local hashes can be used to determine if resultSet has been truncated. // just do internal validation for moment. try { - newVersion.validate(); + if (SimpleClientConfig.validateUpdatedRoots()) + newVersion.validate(); return true; } catch (Exception e) @@ -188,7 +189,8 @@ public class ClientDocument extends uk.ac.vamsas.client.ClientDocument implement if (!newVersion.isRegistered()) _registerObject(newVersion); try { - newVersion.validate(); + if (SimpleClientConfig.validateMergedRoots()) + newVersion.validate(); return true; } catch (Exception e)