Class CloseableDecoratorTypes

java.lang.Object
com.google.errorprone.bugpatterns.CloseableDecoratorTypes

public final class CloseableDecoratorTypes extends Object
Common AutoCloseable decorator types that wrap around AutoCloseable resources, which are always closed when the enclosing decorators are closed.

Each value in the map is the common supertype of some AutoCloseable decorator types, with the key being the common AutoCloseable type that they decorate. The decorated type is always assumed to be the first argument to the constructor of the decorator type.

  • Field Details

    • CLOSEABLE_DECORATOR_TYPES

      public static final com.google.common.collect.ImmutableSetMultimap<String,String> CLOSEABLE_DECORATOR_TYPES