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 2014/03/06 09:33:31 UTC
[14/19] git commit: Fix transformation of an Enumeration to Array -
we need to pass the type of the array we want to be constructed,
otherwise it will be Object[]
Fix transformation of an Enumeration to Array - we need to pass the type of the array we want to be constructed, otherwise it will be Object[]
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/4f1fd55b
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/4f1fd55b
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/4f1fd55b
Branch: refs/heads/master
Commit: 4f1fd55b437322b8719052ed0abe24cc35a82f08
Parents: 971abda
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Thu Mar 6 10:13:09 2014 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Thu Mar 6 10:13:09 2014 +0200
----------------------------------------------------------------------
.../java/org/apache/wicket/protocol/ws/api/HttpSessionCopy.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/4f1fd55b/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/HttpSessionCopy.java
----------------------------------------------------------------------
diff --git a/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/HttpSessionCopy.java b/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/HttpSessionCopy.java
index f591c8d..6423ab2 100644
--- a/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/HttpSessionCopy.java
+++ b/wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/HttpSessionCopy.java
@@ -117,7 +117,7 @@ public class HttpSessionCopy implements HttpSession
@Override
public String[] getValueNames()
{
- return (String[])Collections.list(attributes.keys()).toArray();
+ return Collections.list(attributes.keys()).toArray(new String[attributes.size()]);
}
@Override