W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2007

2002/css-validator/org/w3c/css/selectors/attributes AttributeExact.java,1.3,1.4 AttributeBegin.java,1.2,1.3 AttributeOneOf.java,1.2,1.3

From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 13 Sep 2007 10:12:09 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IVlg9-0006SF-5M@lionel-hutz.w3.org>

Update of /sources/public/2002/css-validator/org/w3c/css/selectors/attributes
In directory hutz:/tmp/cvs-serv24767/org/w3c/css/selectors/attributes

Modified Files:
	AttributeExact.java AttributeBegin.java AttributeOneOf.java 
Log Message:
adapting the new Warning constructor to its new signature (with a list of messages instead of just one or two messages before)

Index: AttributeOneOf.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/selectors/attributes/AttributeOneOf.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- AttributeOneOf.java	14 Sep 2005 15:15:32 -0000	1.2
+++ AttributeOneOf.java	13 Sep 2007 10:12:07 -0000	1.3
@@ -65,7 +65,7 @@
     public void applyAttribute(ApplContext ac, AttributeSelector attr) {
 	if((attr instanceof AttributeExact) &&
 		!value.equals(((AttributeExact) attr).getValue())) {
-	    ac.getFrame().addWarning("incompatible", toString(), attr.toString());
+	    ac.getFrame().addWarning("incompatible", new String[] { toString(), attr.toString() });
 	}
     }
 

Index: AttributeBegin.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/selectors/attributes/AttributeBegin.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- AttributeBegin.java	14 Sep 2005 15:15:32 -0000	1.2
+++ AttributeBegin.java	13 Sep 2007 10:12:07 -0000	1.3
@@ -75,12 +75,12 @@
 	    }
 	    if (!value.equals(v)) {
 		// [lang|=fr][lang=en-US]
-		ac.getFrame().addWarning("incompatible", toString(), attr.toString());
+		ac.getFrame().addWarning("incompatible", new String[] { toString(), attr.toString() });
 	    }
 	} else if (attr instanceof AttributeBegin) {
 	    if (!value.equals(((AttributeBegin) attr).value)) {
 		// [lang|=fr][lang|=en]
-		ac.getFrame().addWarning("incompatible", toString(), attr.toString());
+		ac.getFrame().addWarning("incompatible", new String[] { toString(), attr.toString() });
 	    }
 	}
 

Index: AttributeExact.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/selectors/attributes/AttributeExact.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- AttributeExact.java	19 Apr 2006 11:28:06 -0000	1.3
+++ AttributeExact.java	13 Sep 2007 10:12:07 -0000	1.4
@@ -56,17 +56,17 @@
     public void applyAttribute(ApplContext ac, AttributeSelector attr) {
 	if (attr instanceof AttributeExact) {
 	    if (!value.equals(((AttributeExact) attr).getValue())) {
-		ac.getFrame().addWarning("incompatible", toString(), attr.toString());
+		ac.getFrame().addWarning("incompatible", new String[] { toString(), attr.toString() });
 	    }
 	}
 	else if(attr instanceof AttributeOneOf) {
 	    if (!value.equals(((AttributeOneOf) attr).getValue())) {
-		ac.getFrame().addWarning("incompatible", toString(), attr.toString());
+		ac.getFrame().addWarning("incompatible", new String[] { toString(), attr.toString() });
 	    }
 	}
 	else if(attr instanceof AttributeBegin) {
 	    if (!value.equals(((AttributeBegin) attr).getValue())) {
-		ac.getFrame().addWarning("incompatible", toString(), attr.toString());
+		ac.getFrame().addWarning("incompatible", new String[] { toString(), attr.toString() });
 	    }
 	}
     }
Received on Thursday, 13 September 2007 10:12:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:54:59 GMT