package com.google.instrumentation.common;

import java.io.Closeable;

/**
 * An {@link Closeable} which cannot throw a checked exception.
 */
public interface NonThrowingCloseable extends Closeable {
  @Override
  void close();
}

@@ -132,16 +132,283 @@
 eption.%0A
+ *%0A * %3Cp%3EThis is useful because such a reversion otherwise requires the caller to catch the%0A * (impossible) Exception in the try-with-resources.%0A *%0A * %3Cp%3EExample of usage:%0A *%0A * %3Cpre%3E%0A *   try (NonThrowingAutoCloseable ctx = tryEnter()) %7B%0A *     ...%0A *   %7D%0A * %3C/pre%3E%0A
  */%0Apubl

Add more comments and example of use.