summaryrefslogtreecommitdiff
path: root/toolkit/test/accessibility/NodeMap.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-21 08:47:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-28 16:15:43 +0200
commit67a5b7a8c1a1b1d9a8e458c26be3dc706ab3fabc (patch)
tree65c21899cce1a08d30fa964fa83640cb6c0def85 /toolkit/test/accessibility/NodeMap.java
parentff77676612d8ca7874ba0616ff1841f556f4ddb2 (diff)
Java5 update - convert to using generics for collections
Change-Id: I384cb006beee280922564c9277025843a1bda74a
Diffstat (limited to 'toolkit/test/accessibility/NodeMap.java')
-rw-r--r--toolkit/test/accessibility/NodeMap.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/toolkit/test/accessibility/NodeMap.java b/toolkit/test/accessibility/NodeMap.java
index c0fb9189196f..6050aa2ef276 100644
--- a/toolkit/test/accessibility/NodeMap.java
+++ b/toolkit/test/accessibility/NodeMap.java
@@ -32,7 +32,7 @@ class NodeMap
{
public NodeMap ()
{
- maXAccessibleToNode = new HashMap ();
+ maXAccessibleToNode = new HashMap<XAccessibleContext, AccessibleTreeNode> ();
}
/** Clear the whole map.
@@ -48,7 +48,7 @@ class NodeMap
*/
public boolean InsertNode (XAccessibleContext xContext, AccessibleTreeNode aNode)
{
- AccessibleTreeNode aPreviousNode = (AccessibleTreeNode)maXAccessibleToNode.put (
+ AccessibleTreeNode aPreviousNode = maXAccessibleToNode.put (
xContext,
aNode);
return aPreviousNode != aNode;
@@ -95,7 +95,7 @@ class NodeMap
AccessibleTreeNode GetNode (XAccessibleContext xContext)
{
- return (AccessibleTreeNode)maXAccessibleToNode.get (xContext);
+ return maXAccessibleToNode.get (xContext);
}
AccessibleTreeNode GetNode (Object aObject)
@@ -126,5 +126,5 @@ class NodeMap
- private HashMap maXAccessibleToNode;
+ private HashMap<XAccessibleContext, AccessibleTreeNode> maXAccessibleToNode;
}