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

Change-Id: If20c3516fee586a9e4889507d7473dc9f5c39bf8

scilab/modules/renderer/src/java/org/scilab/modules/renderer/utils/EntityPicker.java

index 99b673e..cfb7d1c 100644 (file)
@@ -391,7 +391,7 @@ public class EntityPicker {
         return -1;
     }
 
-    public class PickedPoint {
+    public static class PickedPoint {
         public int point;
         public boolean isSegment;
         PickedPoint(int p, boolean segment) {
@@ -457,7 +457,7 @@ public class EntityPicker {
     }
 
 
-    public class LegendInfo {
+    public static class LegendInfo {
         public Integer legend = null;
         public Integer polyline = null;
         LegendInfo(Integer legend, Integer polyline) {