- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 25 Sep 2012 20:22:30 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css
In directory hutz:/tmp/cvs-serv29927/css
Modified Files:
CssPaddingBottom.java CssPaddingLeft.java CssPaddingRight.java
CssPaddingTop.java
Log Message:
equality check can use == as we assign a single copy only
Index: CssPaddingLeft.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css/CssPaddingLeft.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CssPaddingLeft.java 25 Sep 2012 20:04:15 -0000 1.3
+++ CssPaddingLeft.java 25 Sep 2012 20:22:27 -0000 1.4
@@ -81,7 +81,7 @@
* e.g. his value is equals to inherit
*/
public boolean isSoftlyInherited() {
- return inherit.equals(value);
+ return inherit == value;
}
/**
Index: CssPaddingTop.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css/CssPaddingTop.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CssPaddingTop.java 25 Sep 2012 20:04:15 -0000 1.3
+++ CssPaddingTop.java 25 Sep 2012 20:22:28 -0000 1.4
@@ -110,7 +110,7 @@
* e.g. his value is equals to inherit
*/
public boolean isSoftlyInherited() {
- return inherit.equals(value);
+ return inherit == value;
}
/**
Index: CssPaddingRight.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css/CssPaddingRight.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CssPaddingRight.java 25 Sep 2012 20:04:15 -0000 1.3
+++ CssPaddingRight.java 25 Sep 2012 20:22:28 -0000 1.4
@@ -81,7 +81,7 @@
* e.g. his value is equals to inherit
*/
public boolean isSoftlyInherited() {
- return inherit.equals(value);
+ return inherit == value;
}
/**
Index: CssPaddingBottom.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css/CssPaddingBottom.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CssPaddingBottom.java 25 Sep 2012 20:04:15 -0000 1.3
+++ CssPaddingBottom.java 25 Sep 2012 20:22:27 -0000 1.4
@@ -81,7 +81,7 @@
* e.g. his value is equals to inherit
*/
public boolean isSoftlyInherited() {
- return inherit.equals(value);
+ return inherit == value;
}
/**
Received on Tuesday, 25 September 2012 20:22:34 UTC