Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Reset snapshot progress on IOExceptions
[controller.git]
/
opendaylight
/
md-sal
/
sal-binding-broker
/
src
/
test
/
java
/
org
/
opendaylight
/
controller
/
md
/
sal
/
binding
/
test
/
SchemaContextSingleton.java
diff --git
a/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/test/SchemaContextSingleton.java
b/opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/test/SchemaContextSingleton.java
index 49eb5aaf5cb400a381e245eb189f64a1a8b23810..32f84a85081b4c33e702f1fd06cc274efb3de4b2 100644
(file)
--- a/
opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/test/SchemaContextSingleton.java
+++ b/
opendaylight/md-sal/sal-binding-broker/src/test/java/org/opendaylight/controller/md/sal/binding/test/SchemaContextSingleton.java
@@
-17,12
+17,14
@@
import org.opendaylight.yangtools.yang.model.api.SchemaContext;
* SchemaContext.
*
* @author Michael Vorburger
* 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 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();
}
if (staticSchemaContext == null) {
staticSchemaContext = supplier.get();
}