ctf: Fix some Sonar warnings
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core / src / org / eclipse / linuxtools / ctf / core / event / types / StructDeclaration.java
index eefbb61c866a7b13ac463c66da67cbedc364ce4c..e43db0d81367e480ca6df237f3f85336e5791a5f 100644 (file)
@@ -15,6 +15,7 @@ package org.eclipse.linuxtools.ctf.core.event.types;
 import java.util.HashMap;
 import java.util.LinkedList;
 import java.util.List;
+import java.util.Map;
 
 /**
  * A CTF structure declaration.
@@ -33,7 +34,7 @@ public class StructDeclaration implements IDeclaration {
     // Attributes
     // ------------------------------------------------------------------------
 
-    private final HashMap<String, IDeclaration> fields = new HashMap<String, IDeclaration>();
+    private final Map<String, IDeclaration> fields = new HashMap<String, IDeclaration>();
     private final List<String> fieldsList = new LinkedList<String>();
     private long maxAlign;
 
@@ -77,8 +78,9 @@ public class StructDeclaration implements IDeclaration {
     /**
      * get the fields of the struct in a map. Faster access time than a list.
      * @return a HashMap of the fields (key is the name)
+     * @since 2.0
      */
-    public HashMap<String, IDeclaration> getFields() {
+    public Map<String, IDeclaration> getFields() {
         return this.fields;
     }
 
This page took 0.02375 seconds and 5 git commands to generate.