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

2002/css-validator/org/w3c/css/parser Frame.java,1.9,1.10

From: Julien Grand-Mourcel via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 13 Sep 2007 10:00:31 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1IVlUt-0004PY-Bo@lionel-hutz.w3.org>

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

Modified Files:
	Frame.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: Frame.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/parser/Frame.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Frame.java	16 Dec 2006 20:22:27 -0000	1.9
+++ Frame.java	13 Sep 2007 10:00:28 -0000	1.10
@@ -89,7 +89,7 @@
      */
     public void addWarning(String warningMessage, String message) {
     warnings.addWarning(new Warning(getSourceFile(), getLine(),
-                    warningMessage, 0, message, "", ac));
+                    warningMessage, 0, new String[] { message }, ac));
     }
 
     /**
@@ -97,14 +97,13 @@
      *
      * @param warningMessage the warning message
      *                       (see org.w3c.css.util.Messages.properties).
-     * @param message        An add-on message.
+     * @param messages       Some add-on messages.
      * @see                  org.w3c.css.util.Warning
      */
-    public void addWarning(String warningMessage, String message1,
-	    String message2) {
-    warnings.addWarning(new Warning(getSourceFile(), getLine(),
-                    warningMessage, 0, message1, message2, ac));
-    }
+	public void addWarning(String warningMessage, String[] messages) {
+		warnings.addWarning(new Warning(getSourceFile(), getLine(),
+                warningMessage, 0, messages, ac));
+	}
 
     /**
      * Get all warnings.
Received on Thursday, 13 September 2007 10:00:37 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 December 2014 20:08:28 UTC