ctf: Make LabelAndRange static in EnumDeclaration
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 18 Jul 2014 22:15:34 +0000 (18:15 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Mon, 28 Jul 2014 14:50:20 +0000 (10:50 -0400)
Change-Id: I9bab7c058fec93879f9ec5b6eef5ef55fb7405c6
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30155
Tested-by: Hudson CI
Reviewed-by: Patrick Tasse <patrick.tasse@gmail.com>
org.eclipse.linuxtools.ctf.core/src/org/eclipse/linuxtools/ctf/core/event/types/EnumDeclaration.java

index cff424d3b159ab1466db8a5b24e42db93f3b90f3..304cb9ad2fd59c0d4513e76d53d64cb154ec5816 100644 (file)
@@ -174,7 +174,7 @@ public final class EnumDeclaration extends Declaration implements ISimpleDatatyp
         public String query(long value) {
             for (LabelAndRange r : ranges) {
                 if (r.intersects(value)) {
-                    return r.fLabel;
+                    return r.getLabel();
                 }
             }
             return null;
@@ -182,11 +182,20 @@ public final class EnumDeclaration extends Declaration implements ISimpleDatatyp
 
     }
 
-    private class LabelAndRange {
+    private static class LabelAndRange {
 
         private final long low, high;
         private final String fLabel;
 
+        /**
+         * Get the label
+         *
+         * @return the label
+         */
+        public String getLabel() {
+            return fLabel;
+        }
+
         public LabelAndRange(long low, long high, String str) {
             this.low = low;
             this.high = high;
This page took 0.026544 seconds and 5 git commands to generate.