2002/css-validator/org/w3c/css/properties/css1 Css1Style.java,1.18,1.19

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

Modified Files:
	Css1Style.java 
Log Message:
changing organization of some classes, fixed number of arguments for warnings about color/no bg color, preparing to get rid of some old profiles

Index: Css1Style.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/Css1Style.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- Css1Style.java	5 Jan 2010 13:49:38 -0000	1.18
+++ Css1Style.java	4 Sep 2011 17:56:30 -0000	1.19
@@ -191,6 +191,7 @@
     /**TV property */
     public CssVerticalAlignTV cssVerticalAlignTV;
 
+    public String[] emptyArray = {};
     /*
      * Font Properties
      */
@@ -2629,7 +2630,7 @@
 			CssProperty.transparent)) {
 //		  It's better to have a background color with a color
 		    warnings.addWarning(new Warning(
-			    colorCSS3, "no-background-color", 2, ac));
+			    colorCSS3, "no-background-color", 2, emptyArray, ac));
 		}
 	    } else {
 		CssValue color = cssBackground.getColor();
@@ -2637,7 +2638,7 @@
 		if (!color.equals(CssBackgroundColor.transparent)) {
 		    // It's better to have a color when a background is defined.
 		    warnings.addWarning(new Warning(cssBackground.color,
-			    "no-color", 2, ac));
+			    "no-color", 2, emptyArray, ac));
 		}
 	    }
 
@@ -2714,7 +2715,7 @@
 			CssProperty.transparent)) {
 //		  It's better to have a background color with a color
 		    warnings.addWarning(new Warning(
-			    colorCSS1, "no-background-color", 2, ac));
+			    colorCSS1, "no-background-color", 2, emptyArray, ac));
 		}
 	    } else {
 		CssValue color = cssBackgroundCSS1.getColor();
@@ -2722,7 +2723,7 @@
 		if (!color.equals(CssBackgroundColorCSS1.transparent)) {
 		    // It's better to have a color when a background is defined.
 		    warnings.addWarning(new Warning(cssBackgroundCSS1.color,
-			    "no-color", 2, ac));
+			    "no-color", 2, emptyArray, ac));
 		}
 	    }
 
@@ -2795,7 +2796,7 @@
 		if (!color.equals(CssBackgroundColor.transparent)) {
 		    // It's better to have a color when a background is defined.
 		    warnings.addWarning(new Warning(cssBackgroundCSS2.color,
-			    "no-color", 2, ac));
+			    "no-color", 2, emptyArray, ac));
 		}
 	    }
 
@@ -2868,7 +2869,7 @@
 	    if(backgroundColor == null) {
 		// It's better to have a background color with a color
 		warnings.addWarning(new Warning(cssColor, 
-			"no-background-color", 2, ac));
+			"no-background-color", 2, emptyArray, ac));
 	    }
 	}
 	else if (cssColorCSS1 != null) {
@@ -2894,7 +2895,7 @@
 	    if(backgroundColor == null) {
 		// It's better to have a background color with a color
 		warnings.addWarning(new Warning(cssColorCSS1, 
-			"no-background-color", 2, ac));
+			"no-background-color", 2, emptyArray, ac));
 	    }
 	}
 	else if (cssColorCSS2 != null) {
@@ -2921,7 +2922,7 @@
 		// FIXME background image
 		// It's better to have a background color with a color
 		warnings.addWarning(new Warning(cssColorCSS2, 
-			"no-background-color", 2, ac));
+			"no-background-color", 2, emptyArray, ac));
 	    }
 	}
 

Received on Sunday, 4 September 2011 17:56:34 UTC