W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

2006/unicorn/src/org/w3c/unicorn/response/parser DefaultParser.java,1.6,1.7

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 18 Sep 2009 15:44:14 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mofd8-0002hy-OK@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/response/parser
In directory hutz:/tmp/cvs-serv10359/src/org/w3c/unicorn/response/parser

Modified Files:
	DefaultParser.java 
Log Message:
fixed unset rating were considered = 0

Index: DefaultParser.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/response/parser/DefaultParser.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- DefaultParser.java	18 Sep 2009 15:20:39 -0000	1.6
+++ DefaultParser.java	18 Sep 2009 15:44:12 -0000	1.7
@@ -82,10 +82,10 @@
 		res.setPassed(or.getPassed());
 		res.setUri(or.getUri());
 		res.setVersion(or.getVersion());
-		res.setRating(or.getRating());
+		if (or.isSetRating())
+			res.setRating(or.getRating());
 		
-		org.w3.unicorn.observationresponse.ResultDocument.Result result = or
-				.getResult();
+		org.w3.unicorn.observationresponse.ResultDocument.Result result = or.getResult();
 
 		// Fill res.result
 
Received on Friday, 18 September 2009 15:44:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:14 GMT