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

2002/css-validator/org/w3c/css/properties CssColor.java,1.4,1.5

From: Bjoern Hoehrmann <bjoern@dev.w3.org>
Date: Sun, 30 May 2004 05:06:54 +0000
To: www-validator-cvs@w3.org
Message-Id: <20040530050654.37CB84A865@hutz.w3.org>

Update of /sources/public/2002/css-validator/org/w3c/css/properties
In directory hutz:/tmp/cvs-serv20837/org/w3c/css/properties

Modified Files:
	CssColor.java 
Log Message:
more consistent use of java.util.Vector methods, see http://www.w3.org/mid/3f35c265.166229986@smtp.bjoern.hoehrmann.de

Index: CssColor.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/CssColor.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- CssColor.java	30 Mar 2004 13:12:23 -0000	1.4
+++ CssColor.java	30 May 2004 05:06:52 -0000	1.5
@@ -107,7 +107,7 @@
 		if (v1 == null || op != COMMA) {
 		    throw new InvalidParamException("invalid-color", ac);
 		}
-		rgbaValues.add(v1);
+		rgbaValues.addElement(v1);
 		params.next();
 
 		CssValue v2 = params.getValue();
@@ -115,7 +115,7 @@
 		if (v2 == null || op != COMMA) {
 		    throw new InvalidParamException("invalid-color", ac);
 		}
-		rgbaValues.add(v2);
+		rgbaValues.addElement(v2);
 		params.next();
 
 		CssValue v3 = params.getValue();
@@ -123,14 +123,14 @@
 		if (v3 == null || op != COMMA) {
 		    throw new InvalidParamException("invalid-color", ac);
 		}
-		rgbaValues.add(v3);
+		rgbaValues.addElement(v3);
 		params.next();
 
 		CssValue v4 = params.getValue();
 		if (v4 == null) {
 		    throw new InvalidParamException("invalid-color", ac);
 		}
-		rgbaValues.add(v4);
+		rgbaValues.addElement(v4);
 
 		tempcolor.setRGBAColor(rgbaValues, ac);
 		color = tempcolor;
@@ -144,7 +144,7 @@
 		if (v1 == null || op != COMMA) {
 		    throw new InvalidParamException("invalid-color", ac);
 		}
-		hslValues.add(v1);
+		hslValues.addElement(v1);
 		params.next();
 
 		CssValue v2 = params.getValue();
@@ -152,14 +152,14 @@
 		if (v2 == null || op != COMMA) {
 		    throw new InvalidParamException("invalid-color", ac);
 		}
-		hslValues.add(v2);
+		hslValues.addElement(v2);
 		params.next();
 
 		CssValue v3 = params.getValue();
 		if (v3 == null) {
 		    throw new InvalidParamException("invalid-color", ac);
 		}
-		hslValues.add(v3);
+		hslValues.addElement(v3);
 
 		params.starts(); // set position back to the first value
 
@@ -179,7 +179,7 @@
 		if (v1 == null || op != COMMA) {
 		    throw new InvalidParamException("invalid-color", ac);
 		}
-		hslaValues.add(v1);
+		hslaValues.addElement(v1);
 		params.next();
 
 		CssValue v2 = params.getValue();
@@ -187,7 +187,7 @@
 		if (v2 == null || op != COMMA) {
 		    throw new InvalidParamException("invalid-color", ac);
 		}
-		hslaValues.add(v2);
+		hslaValues.addElement(v2);
 		params.next();
 
 		CssValue v3 = params.getValue();
@@ -195,14 +195,14 @@
 		if (v3 == null || op != COMMA) {
 		    throw new InvalidParamException("invalid-color", ac);
 		}
-		hslaValues.add(v3);
+		hslaValues.addElement(v3);
 		params.next();
 
 		CssValue v4 = params.getValue();
 		if (v4 == null) {
 		    throw new InvalidParamException("invalid-color", ac);
 		}
-		hslaValues.add(v4);
+		hslaValues.addElement(v4);
 
 		params.starts();
 		tempcolor.setHSLAColor(hslaValues, ac);
Received on Sunday, 30 May 2004 01:06:54 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:06 UTC