1 return new org.opendaylight.controller.config.yang.test.impl.CheckedAutoCloseable() {
3 public synchronized void close() throws Exception {
4 if(getSingleDependency() != null && getSingleDependency().isClosed() == true) {
5 // Simulate a cleanup on dependencies that should not be closed yet
6 throw new java.lang.Error("Dependency was closed first");
8 for (org.opendaylight.controller.config.yang.test.impl.CheckedAutoCloseable autoCloseable : getTestingDepsDependency()) {
9 if(autoCloseable.isClosed() == true) {
10 // Simulate a cleanup on dependencies that should not be closed yet
11 throw new java.lang.Error("Dependency was closed first");