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

2006/unicorn/src/org/w3c/unicorn/util ClientHttpRequest.java,1.3,1.4

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 22 Sep 2009 12:38:45 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1Mq4dp-0005Jg-0P@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/util
In directory hutz:/tmp/cvs-serv20414/src/org/w3c/unicorn/util

Modified Files:
	ClientHttpRequest.java 
Log Message:
removed compilation warnings

Index: ClientHttpRequest.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/util/ClientHttpRequest.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ClientHttpRequest.java	4 Sep 2009 15:49:48 -0000	1.3
+++ ClientHttpRequest.java	22 Sep 2009 12:38:42 -0000	1.4
@@ -257,10 +257,8 @@
 	public void setParameter(final String sName, final String sValue)
 			throws IOException {
 		ClientHttpRequest.logger.trace("setParameter(String, String)");
-		if (ClientHttpRequest.logger.isDebugEnabled()) {
-			ClientHttpRequest.logger.debug("Name : " + sName + ".");
-			ClientHttpRequest.logger.debug("Value : " + sValue + ".");
-		}
+		ClientHttpRequest.logger.debug("Name : " + sName + ".");
+		ClientHttpRequest.logger.debug("Value : " + sValue + ".");
 		this.boundary();
 		this.writeName(sName);
 		this.newline();
@@ -360,13 +358,13 @@
 	 *            request
 	 * @throws IOException
 	 */
-	public void setParameters(final Map mapOfParameter) throws IOException {
+	public void setParameters(final Map<?, ?> mapOfParameter) throws IOException {
 		if (mapOfParameter == null) {
 			return;
 		}
-		for (final Iterator aIterator = mapOfParameter.entrySet().iterator(); aIterator
+		for (final Iterator<?> aIterator = mapOfParameter.entrySet().iterator(); aIterator
 				.hasNext();) {
-			final Map.Entry entry = (Map.Entry) aIterator.next();
+			final Map.Entry<?, ?> entry = (Map.Entry<?, ?>) aIterator.next();
 			this.setParameter(entry.getKey().toString(), entry.getValue());
 		}
 	}
@@ -418,7 +416,7 @@
 	 * @throws IOException
 	 * @see setParameters
 	 */
-	public InputStream post(final Map mapOfParameter) throws IOException {
+	public InputStream post(final Map<?, ?> mapOfParameter) throws IOException {
 		this.setParameters(mapOfParameter);
 		return this.post();
 	}
@@ -454,7 +452,7 @@
 	 * @see setCookies
 	 */
 	public InputStream post(final Map<String, String> mapOfCookie,
-			final Map mapOfParameter) throws IOException {
+			final Map<?, ?> mapOfParameter) throws IOException {
 		this.setCookies(mapOfCookie);
 		this.setParameters(mapOfParameter);
 		return this.post();
@@ -586,7 +584,7 @@
 	 * @throws IOException
 	 * @see setParameters
 	 */
-	public static InputStream post(final URL aURL, final Map mapOfParameter)
+	public static InputStream post(final URL aURL, final Map<?, ?> mapOfParameter)
 			throws IOException {
 		return new ClientHttpRequest(aURL).post(mapOfParameter);
 	}
@@ -620,7 +618,7 @@
 	 * @see setParameters
 	 */
 	public static InputStream post(final URL aURL,
-			final Map<String, String> mapOfCookie, final Map mapOfParameter)
+			final Map<String, String> mapOfCookie, final Map<?, ?> mapOfParameter)
 			throws IOException {
 		return new ClientHttpRequest(aURL).post(mapOfCookie, mapOfParameter);
 	}
Received on Tuesday, 22 September 2009 12:54:32 GMT

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