1 package org.opendaylight.controller.config.yang.test.impl;
3 import com.google.common.base.Preconditions;
5 public class CheckedAutoCloseable implements AutoCloseable {
6 private boolean closed = false;
9 public synchronized void close() throws Exception {
10 Preconditions.checkState(closed == false);
14 public synchronized boolean isClosed() {