Bug 6795 - Deprecated sal-dom-xsql
[controller.git] / opendaylight / md-sal / sal-dom-xsql / src / main / java / org / opendaylight / controller / md / sal / dom / xsql / XSQLCriteria.java
index ed75254bb28e377c07c88c63f4c81a8aaa9c8634..aa2d8b96b2f885be78391a2ad5ac63b3b9e99d93 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
 package org.opendaylight.controller.md.sal.dom.xsql;
 
 import java.io.Serializable;
@@ -5,6 +13,10 @@ import java.lang.reflect.Method;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 
+/**
+ * To be removed in Nitrogen
+ */
+@Deprecated
 public class XSQLCriteria implements Serializable {
     private static final long serialVersionUID = 1L;
 
@@ -36,7 +48,7 @@ public class XSQLCriteria implements Serializable {
     private String criteria = null;
 
     private static final Map<Class<?>, Map<String, Method>> methodCache =
-        new ConcurrentHashMap<Class<?>, Map<String, Method>>();
+            new ConcurrentHashMap<>();
 
     public XSQLCriteria(final String data, final int parentOperation) {
         criteria = data;
@@ -116,7 +128,7 @@ public class XSQLCriteria implements Serializable {
         try {
             Map<String, Method> cache = methodCache.get(element.getClass());
             if (cache == null) {
-                cache = new ConcurrentHashMap<String, Method>();
+                cache = new ConcurrentHashMap<>();
                 methodCache.put(element.getClass(), cache);
             }