Fixup checkstyle
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / test / java / org / opendaylight / controller / md / sal / binding / test / SchemaContextSingleton.java
index 49eb5aaf5cb400a381e245eb189f64a1a8b23810..06763bc2a1fe90cfcfe2d47f70d143580593039c 100644 (file)
@@ -17,19 +17,23 @@ 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();
         }
         return staticSchemaContext;
     }
 
-    private SchemaContextSingleton() { }
+    private SchemaContextSingleton() {
+
+    }
 
     @FunctionalInterface
     public interface Supplier<T> {