W3C home > Mailing lists > Public > www-validator-cvs@w3.org > July 2005

2002/css-validator/org/w3c/css/properties3 Css3Properties.java,1.1,1.2

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 12 Jul 2005 14:47:57 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1DsM3B-0004cp-Rh@lionel-hutz.w3.org>

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

Modified Files:
	Css3Properties.java 
Log Message:
Utf8 properties (Jean-Guilhem Rouel)

Index: Css3Properties.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties3/Css3Properties.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Css3Properties.java	19 Jul 2002 20:30:11 -0000	1.1
+++ Css3Properties.java	12 Jul 2005 14:47:55 -0000	1.2
@@ -6,17 +6,17 @@
 // Please first read the full copyright statement in file COPYRIGHT.html
 package org.w3c.css.properties3;
 
-import java.util.Properties;
 import java.net.URL;
 
 import org.w3c.css.properties.CssProperty;
+import org.w3c.css.util.Utf8Properties;
 
 public class Css3Properties {
 
-   public static Properties properties;
+	public static Utf8Properties properties;
 
    public static String getString(CssProperty property, String prop) {
-      return properties.getProperty(property.getPropertyName()+"."+prop);
+		return properties.getProperty(property.getPropertyName() + "." + prop);
    }
 
    public static boolean getInheritance(CssProperty property) {
@@ -24,14 +24,15 @@
    }
 
    static {
-      properties = new Properties();
+		properties = new Utf8Properties();
       try {
-        URL url = Css3Properties.class.getResource("CSS3Default.properties");
+			URL url = Css3Properties.class
+					.getResource("CSS3Default.properties");
         properties.load(url.openStream());
-      } 
-      catch (Exception e) {
-        System.err.println("org.w3c.css.properties3.Css3Properties: couldn't load properties ");
-        System.err.println("  " + e.toString() );
+		} catch (Exception e) {
+			System.err
+					.println("org.w3c.css.properties3.Css3Properties: couldn't load properties ");
+			System.err.println("  " + e.toString());
       }
    }
 }
Received on Tuesday, 12 July 2005 14:48:01 GMT

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