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

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