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

2006/unicorn/src/org/w3c/unicorn/response/impl OldContextXBeans.java,1.2,1.3

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 22 Oct 2009 12:58:53 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1N0xFl-0000Cj-Iz@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl
In directory hutz:/tmp/cvs-serv771/src/org/w3c/unicorn/response/impl

Modified Files:
	OldContextXBeans.java 
Log Message:
trims context

Index: OldContextXBeans.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl/OldContextXBeans.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- OldContextXBeans.java	22 Oct 2009 09:49:57 -0000	1.2
+++ OldContextXBeans.java	22 Oct 2009 12:58:51 -0000	1.3
@@ -9,7 +9,8 @@
 	private Integer column;
 	
 	public OldContextXBeans(String context, Integer line, Integer column) {
-		this.context = context;
+		if (context != null)
+			this.context = context.trim();
 		this.line = line;
 		this.column = column;
 	}
@@ -27,9 +28,7 @@
 	}
 
 	public String getContext() {
-		if (context != null)
-			return context.trim();
-		return null;
+		return context;
 	}
 
 	public Integer getLine() {
Received on Thursday, 22 October 2009 12:59:00 UTC

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