W3C home > Mailing lists > Public > www-validator-cvs@w3.org > December 2009

2002/css-validator/org/w3c/css/values CssExpression.java,1.7,1.8

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 17 Dec 2009 16:10:01 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NLIvR-0007rq-1D@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/values
In directory hutz:/tmp/cvs-serv30217/org/w3c/css/values

Modified Files:
	CssExpression.java 
Log Message:
formatting

Index: CssExpression.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/values/CssExpression.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- CssExpression.java	9 Dec 2009 17:21:50 -0000	1.7
+++ CssExpression.java	17 Dec 2009 16:09:58 -0000	1.8
@@ -57,10 +57,11 @@
      * don't change the position in the expression
      */
     public CssValue getValue() {
-	if (index == count)
+	if (index == count) {
 	    return null;
-	else
+	} else {
 	    return (items.elementAt(index)).value;
+	}
     }
 
     /**
@@ -68,10 +69,11 @@
      * don't change the position in the expression
      */
     public CssValue getNextValue() {
-	if (index+1 >= count)
+	if (index+1 >= count) {
 	    return null;
-	else
+	} else {
 	    return (items.elementAt(index+1)).value;
+	}
     }
 
     /* Modified by Sijtsche de Jong */
@@ -80,10 +82,11 @@
      * don't change the position in the expression
      */
     public char getOperator() {
-	if (index == count)
+	if (index == count) {
 	    return SPACE;
-	else
+	} else {
 	    return (items.elementAt(index)).operator;
+	}
     }
 
     /**
@@ -114,8 +117,9 @@
      * Removes the current value and his operator
      */
     public void remove() {
-	if (index != count)
+	if (index != count) {
 	    items.removeElementAt(index);
+	}
 	count--;
     }
 
@@ -144,8 +148,9 @@
      * Change the position to the next
      */
     public void next() {
-	if (index < count)
+	if (index < count) {
 	    index++;
+	}
     }
 
     /**
@@ -174,7 +179,8 @@
     }
 
     /**
-     * Returns a string representation of the object before the current position.
+     * Returns a string representation of the object before the current 
+     * position.
      */
     public String toStringFromStart() {
 	StringBuilder sb = new StringBuilder();
Received on Thursday, 17 December 2009 16:10:02 GMT

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