4 package org.opendaylight.controller.config.yang.test.impl;
6 import com.google.common.base.Preconditions;
8 public class CheckedAutoCloseable implements AutoCloseable {
9 private boolean closed = false;
12 public synchronized void close() throws Exception {
13 Preconditions.checkState(closed == false);
17 public synchronized boolean isClosed() {