Remove some java warnings (redundant declarations)
[scilab.git] / scilab / modules / gui / src / java / org / scilab / modules / gui / editor / Editor.java
index 385032d..9b538c1 100644 (file)
@@ -142,7 +142,7 @@ public class Editor {
             redo.setEnabled(editorHistory.isRedoEnabled());
 
             menu.show(event.getComponent(), event.getX(), event.getY());
-            dialogComponent = (Component)event.getComponent();
+            dialogComponent = event.getComponent();
         } else {
             dataEditor.onRightClick(event);
         }