- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 24 Feb 2009 21:45:16 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css1
In directory hutz:/tmp/cvs-serv25796/org/w3c/css/properties/css1
Modified Files:
CssProperties.java
Log Message:
minor changes
Index: CssProperties.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/CssProperties.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CssProperties.java 14 Sep 2005 15:14:31 -0000 1.2
+++ CssProperties.java 24 Feb 2009 21:45:14 -0000 1.3
@@ -17,12 +17,13 @@
public static Utf8Properties properties;
public static String getString(CssProperty property, String prop) {
- StringBuffer st = new StringBuffer(property.getPropertyName());
- return properties.getProperty(st.append('.').append(prop).toString());
+ StringBuilder st = new StringBuilder(property.getPropertyName());
+ st.append('.').append(prop);
+ return properties.getProperty(st.toString());
}
public static boolean getInheritance(CssProperty property) {
- return getString(property, "inherited").equals("true");
+ return "true".equals(getString(property, "inherited"));
}
static {
@@ -33,8 +34,8 @@
properties.load(f);
f.close();
} catch (Exception e) {
- System.err
- .println("org.w3c.css.properties.CssProperties: couldn't load properties ");
+ System.err.println("org.w3c.css.properties.CssProperties: "+
+ "couldn't load properties ");
System.err.println(" " + e.toString());
}
}
Received on Tuesday, 24 February 2009 21:45:26 UTC