- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 21 Oct 2009 16:22:30 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl
In directory hutz:/tmp/cvs-serv29437/src/org/w3c/unicorn/response/impl
Modified Files:
OldResponseXBeans.java
Log Message:
old schema responses are considered 'undef' if <passed> is not set
Index: OldResponseXBeans.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl/OldResponseXBeans.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- OldResponseXBeans.java 21 Oct 2009 16:01:10 -0000 1.6
+++ OldResponseXBeans.java 21 Oct 2009 16:22:28 -0000 1.7
@@ -35,10 +35,6 @@
private int warningCount = 0;
private int infoCount = 0;
- //private List<Message> errorMessages = new ArrayList<Message>();
- //private List<Message> warningMessages = new ArrayList<Message>();
- //private List<Message> infoMessages = new ArrayList<Message>();
-
private String requestURI;
private String observerID;
@@ -74,7 +70,6 @@
mess.setURI(or.getUri());
messages.add(mess);
errorCount++;
- //errorMessages.add(mess);
}
}
}
@@ -88,7 +83,6 @@
mess.setURI(or.getUri());
messages.add(mess);
infoCount++;
- //infoMessages.add(mess);
}
}
}
@@ -102,7 +96,6 @@
mess.setURI(or.getUri());
messages.add(mess);
warningCount++;
- //warningMessages.add(mess);
}
}
}
@@ -177,6 +170,8 @@
}
public int getStatus() {
+ if (!or.isSetPassed())
+ return UNDEF;
if (or.getPassed())
return PASSED;
return FAILED;
@@ -301,6 +296,8 @@
}
public boolean isUndef() {
+ if (getStatus() == UNDEF)
+ return true;
return false;
}
Received on Wednesday, 21 October 2009 16:22:33 UTC