- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 21 Oct 2009 16:35:16 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl In directory hutz:/tmp/cvs-serv5820/src/org/w3c/unicorn/response/impl Modified Files: DefaultResponseXBeans.java Log Message: fixed undef status were never used Index: DefaultResponseXBeans.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl/DefaultResponseXBeans.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- DefaultResponseXBeans.java 21 Oct 2009 16:01:10 -0000 1.8 +++ DefaultResponseXBeans.java 21 Oct 2009 16:35:13 -0000 1.9 @@ -124,7 +124,8 @@ public int getStatus() { if (or.isSetStatus() && or.getStatus().getValue().equalsIgnoreCase("passed")) { return PASSED; - } else if (or.isSetStatus() && or.getStatus().getValue().equalsIgnoreCase("failed") || getErrorCount() > 0) { + } else if ((or.isSetStatus() && or.getStatus().getValue().equalsIgnoreCase("failed")) || + (!or.isSetStatus() && getErrorCount() > 0)) { return FAILED; } else { return UNDEF;
Received on Wednesday, 21 October 2009 16:38:15 UTC