W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2010

2006/unicorn/src/org/w3c/unicorn/response/impl DefaultResponseXBeans.java,1.15,1.16

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 17 May 2010 12:10:31 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1ODz9T-0000zO-Nv@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl
In directory hutz:/tmp/cvs-serv3786/src/org/w3c/unicorn/response/impl

Modified Files:
	DefaultResponseXBeans.java 
Log Message:
if a message has no group attribute in a grouped output, set it to the first group

Index: DefaultResponseXBeans.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl/DefaultResponseXBeans.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- DefaultResponseXBeans.java	14 May 2010 16:05:53 -0000	1.15
+++ DefaultResponseXBeans.java	17 May 2010 12:10:29 -0000	1.16
@@ -119,6 +119,10 @@
 				infoCount++;
 				break;
 			}
+			
+			if (hasGroups() && !message.isSetGroup())
+				m.setGroupName(groups.get(0).getName());
+			
 			messages.add(m);
 		}
 		
Received on Monday, 17 May 2010 12:10:34 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:42 UTC