You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2013/05/22 14:59:40 UTC

[2/3] git commit: Java 1.7 - diamonds operator

Java 1.7 - diamonds operator


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/66375f6c
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/66375f6c
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/66375f6c

Branch: refs/heads/master
Commit: 66375f6c4ad9a1e865282d7ea9e688fa539e2c41
Parents: 92629fd
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Fri May 17 10:59:06 2013 +0300
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Fri May 17 10:59:06 2013 +0300

----------------------------------------------------------------------
 .../servlet/MultipartServletWebRequestImpl.java    |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/66375f6c/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/MultipartServletWebRequestImpl.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/MultipartServletWebRequestImpl.java b/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/MultipartServletWebRequestImpl.java
index 4e96e4b..88f5622 100644
--- a/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/MultipartServletWebRequestImpl.java
+++ b/wicket-core/src/main/java/org/apache/wicket/protocol/http/servlet/MultipartServletWebRequestImpl.java
@@ -119,7 +119,7 @@ public class MultipartServletWebRequestImpl extends MultipartServletWebRequest
 		Args.notNull(upload, "upload");
 		this.upload = upload;
 		parameters = new ValueMap();
-		files = new HashMap<String, List<FileItem>>();
+		files = new HashMap<>();
 
 		// Check that request is multipart
 		final boolean isMultipart = ServletFileUpload.isMultipartContent(request);
@@ -214,7 +214,7 @@ public class MultipartServletWebRequestImpl extends MultipartServletWebRequest
 				List<FileItem> fileItems = files.get(item.getFieldName());
 				if (fileItems == null)
 				{
-					fileItems = new ArrayList<FileItem>();
+					fileItems = new ArrayList<>();
 					files.put(item.getFieldName(), fileItems);
 				}
 				// Add to file list
@@ -277,13 +277,13 @@ public class MultipartServletWebRequestImpl extends MultipartServletWebRequest
 	@Override
 	protected Map<String, List<StringValue>> generatePostParameters()
 	{
-		Map<String, List<StringValue>> res = new HashMap<String, List<StringValue>>();
+		Map<String, List<StringValue>> res = new HashMap<>();
 		for (String key : parameters.keySet())
 		{
 			String[] val = (String[])parameters.get(key);
 			if (val != null && val.length > 0)
 			{
-				List<StringValue> items = new ArrayList<StringValue>();
+				List<StringValue> items = new ArrayList<>();
 				for (String s : val)
 				{
 					items.add(StringValue.valueOf(s));