Bug 6795 - Deprecated sal-dom-xsql
[controller.git] / opendaylight / md-sal / sal-dom-xsql / src / main / java / org / opendaylight / controller / md / sal / dom / xsql / XSQLODLUtils.java
index 96c6d89d231a1213fe32c69d61af06457a71c545..f4d80ccc0297e4bbe7ebb4c29d6591cf18f4c19c 100644 (file)
@@ -34,10 +34,14 @@ import org.opendaylight.yangtools.yang.model.util.type.DerivedTypes;
 /**
  * @author Sharon Aicler(saichler@gmail.com)
  **/
+/**
+ * To be removed in Nitrogen
+ */
+@Deprecated
 public class XSQLODLUtils {
 
     private static Map<Class<?>, Class<?>> types =
-        new ConcurrentHashMap<Class<?>, Class<?>>();
+            new ConcurrentHashMap<>();
 
     static {
         types.put(QName.class, QName.class);
@@ -174,7 +178,7 @@ public class XSQLODLUtils {
     }
 
     public static Map<String, Field> refFieldsCache =
-        new HashMap<String, Field>();
+            new HashMap<>();
 
     public static Field findField(Class<?> c, String name) {
         if (c == null) {
@@ -219,7 +223,7 @@ public class XSQLODLUtils {
 
     public static List<Object> getMChildren(Object o) {
         Map<?, ?> children = getChildren(o);
-        List<Object> result = new LinkedList<Object>();
+        List<Object> result = new LinkedList<>();
         for (Object val : children.values()) {
             result.add((Object) val);
         }