Cache reflection operations in AbstractSchemaAwareTest
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / test / java / org / opendaylight / controller / md / sal / binding / test / SchemaContextSingleton.java
index 49eb5aaf5cb400a381e245eb189f64a1a8b23810..32f84a85081b4c33e702f1fd06cc274efb3de4b2 100644 (file)
@@ -17,12 +17,14 @@ import org.opendaylight.yangtools.yang.model.api.SchemaContext;
  * SchemaContext.
  *
  * @author Michael Vorburger
+ * @deprecated This class should not be used, as it pollutes the classpath.
  */
+@Deprecated
 public final class SchemaContextSingleton {
 
     private static SchemaContext staticSchemaContext;
 
-    public static synchronized SchemaContext getSchemaContext(Supplier<SchemaContext> supplier) throws Exception {
+    public static synchronized SchemaContext getSchemaContext(final Supplier<SchemaContext> supplier) throws Exception {
         if (staticSchemaContext == null) {
             staticSchemaContext = supplier.get();
         }