CoverityFix-CID:1351067 Inner class could be made static 48/20348/2
Nimish Kapoor [Fri, 27 Jul 2018 18:11:00 +0000 (23:11 +0530)]
This class is an inner class, but does not use its embedded reference to the
object which created it.

Change-Id: Ia48aee55832ea4a56c3adac21cea9cc347c56ae0

scilab/modules/gui/src/java/org/scilab/modules/gui/SwingView.java

index ab1b11c..ea28e4c 100644 (file)
@@ -226,7 +226,7 @@ public final class SwingView implements GraphicView {
         Console, CheckBox, Edit, Spinner, Frame, Figure, Axes, Image, ListBox, PopupMenu, Progressbar, PushButton, RadioButton, Slider, Table, Text, Uimenu, UiParentMenu, UiChildMenu, UiCheckedMenu, UiContextMenu, Waitbar, Tab, Layer
     }
 
-    private class TypedObject {
+    private static class TypedObject {
         private UielementType _type;
         private SwingViewObject _value;
         private Set<Integer> _children;