W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2012

2002/css-validator/org/w3c/css/properties/css CssFontFamily.java,1.1,1.2

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 30 Aug 2012 09:10:59 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1T70mB-0006AI-0T@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css
In directory hutz:/tmp/cvs-serv23620/css

Modified Files:
	CssFontFamily.java 
Log Message:
font family parsing was eating one extra ident

Index: CssFontFamily.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css/CssFontFamily.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CssFontFamily.java	4 Aug 2012 21:17:04 -0000	1.1
+++ CssFontFamily.java	30 Aug 2012 09:10:56 -0000	1.2
@@ -12,15 +12,13 @@
 import org.w3c.css.values.CssExpression;
 import org.w3c.css.values.CssValue;
 
-import java.util.ArrayList;
-
 /**
  * @since CSS1
  * @version $Revision$
  */
 public class CssFontFamily extends CssProperty {
 
-    public Object value;
+    public CssValue value;
 	public boolean hasGenericFontFamily = false;
 
     /**
@@ -78,19 +76,6 @@
 	 * Returns a string representation of the object.
 	 */
 	public String toString() {
-		if (value instanceof ArrayList) {
-			StringBuilder sb = new StringBuilder();
-			boolean first = true;
-			for (CssValue aCssValue : (ArrayList<CssValue>) value) {
-				if (!first) {
-					sb.append(',');
-				} else {
-					first = false;
-				}
-				sb.append(aCssValue.toString());
-			}
-			return sb.toString();
-		}
 		return value.toString();
 	}
 
Received on Thursday, 30 August 2012 09:11:03 UTC

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