From 3c6d932fa841e102818abd31b7538728085d99e1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 18 Dec 2014 11:13:18 +0200 Subject: java: was passing the wrong thing to the remove method on a Map, we need to pass the key, not the value, to be deleted Found by FindBugs. Change-Id: If6fd3d8d56a7c7dfabac31d8ee268939e582f4eb --- toolkit/test/accessibility/Canvas.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toolkit/test/accessibility') diff --git a/toolkit/test/accessibility/Canvas.java b/toolkit/test/accessibility/Canvas.java index e2e1fabf0810..c254ed62c5e8 100644 --- a/toolkit/test/accessibility/Canvas.java +++ b/toolkit/test/accessibility/Canvas.java @@ -116,9 +116,9 @@ class Canvas int i = maNodes.indexOf (aNode); if( i != -1 ) { - Object aObject = maObjects.get(aNode); + CanvasShape aObject = maObjects.get(aNode); maObjectList.remove (aObject); - maObjects.remove (aObject); + maObjects.remove (aNode); maNodes.remove (aNode); repaint (); } -- cgit