2002/css-validator/org/w3c/css/util InvalidParamException.java,1.6,1.7 Messages.java,1.21,1.22

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

Modified Files:
	InvalidParamException.java Messages.java 
Log Message:
various cleanup + templating

Index: InvalidParamException.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/InvalidParamException.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- InvalidParamException.java	13 Sep 2007 10:21:00 -0000	1.6
+++ InvalidParamException.java	10 Dec 2008 15:25:52 -0000	1.7
@@ -57,23 +57,23 @@
     
     private static String processError(String error, Object args, ApplContext ac) {
     	if (args instanceof String[]) {
-			String str = null;
-			
-			if (error != null) {
-			str = ac.getMsg().getErrorString(error);
-			}
-			if (str == null)
-				return "can't find the error message for " + error;
-			else {
-			// replace all parameters
-				int j = 0;
-				for (int i = 0; (i = str.indexOf("%s")) >= 0 && j < ((String[]) args).length; ) {
-					str = str.substring(0, i) + ((String[]) args)[j++] + str.substring(i+2);
-				}
-				return str;
-			}
+	    String str = null;
+	    
+	    if (error != null) {
+		str = ac.getMsg().getErrorString(error);
+	    }
+	    if (str == null)
+		return "can't find the error message for " + error;
+	    else {
+		// replace all parameters
+		int j = 0;
+		for (int i = 0; (i = str.indexOf("%s")) >= 0 && j < ((String[]) args).length; ) {
+		    str = str.substring(0, i) + ((String[]) args)[j++] + str.substring(i+2);
+		}
+		return str;
+	    }
     	} else {
-    		return processError(error, args.toString(), "", ac);
+	    return processError(error, args.toString(), "", ac);
     	}
     }
     

Index: Messages.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/util/Messages.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- Messages.java	7 Jul 2008 19:05:28 -0000	1.21
+++ Messages.java	10 Dec 2008 15:25:52 -0000	1.22
@@ -18,11 +18,11 @@
  */
 public class Messages {
 
-	/**
-	 * Message properties
-	 */
-	public Utf8Properties properties;
-
+    /**
+     * Message properties
+     */
+    public Utf8Properties properties;
+    
 	public static Hashtable languages = new Hashtable();
 	public static ArrayList languages_name = new ArrayList();
 	

Received on Wednesday, 10 December 2008 15:26:04 UTC