final class org.bson.codecs.configuration.CodecCache
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: org.bson.codecs.configuration.CodecCache
  super_class: java.lang.Object
{
  private final java.util.concurrent.ConcurrentMap<java.lang.Class<?>, org.bson.codecs.configuration.Optional<? extends org.bson.codecs.Codec<?>>> codecCache;
    descriptor: Ljava/util/concurrent/ConcurrentMap;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/Class<*>;Lorg/bson/codecs/configuration/Optional<+Lorg/bson/codecs/Codec<*>;>;>;

  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.bson.codecs.configuration.CodecCache this
         0: .line 26
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 27
            aload 0 /* this */
         2: .line 28
            new java.util.concurrent.ConcurrentHashMap
            dup
            invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
            putfield org.bson.codecs.configuration.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
         3: .line 26
            return
        end local 0 // org.bson.codecs.configuration.CodecCache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/bson/codecs/configuration/CodecCache;

  public boolean containsKey(java.lang.Class<?>);
    descriptor: (Ljava/lang/Class;)Z
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // org.bson.codecs.configuration.CodecCache this
        start local 1 // java.lang.Class clazz
         0: .line 31
            aload 0 /* this */
            getfield org.bson.codecs.configuration.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* clazz */
            invokeinterface java.util.concurrent.ConcurrentMap.containsKey:(Ljava/lang/Object;)Z
            ireturn
        end local 1 // java.lang.Class clazz
        end local 0 // org.bson.codecs.configuration.CodecCache this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    1     0   this  Lorg/bson/codecs/configuration/CodecCache;
            0    1     1  clazz  Ljava/lang/Class<*>;
    Signature: (Ljava/lang/Class<*>;)Z
    MethodParameters:
       Name  Flags
      clazz  final

  public void put(java.lang.Class<?>, org.bson.codecs.Codec<?>);
    descriptor: (Ljava/lang/Class;Lorg/bson/codecs/Codec;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // org.bson.codecs.configuration.CodecCache this
        start local 1 // java.lang.Class clazz
        start local 2 // org.bson.codecs.Codec codec
         0: .line 35
            aload 0 /* this */
            getfield org.bson.codecs.configuration.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* clazz */
            aload 2 /* codec */
            invokestatic org.bson.codecs.configuration.Optional.of:(Ljava/lang/Object;)Lorg/bson/codecs/configuration/Optional;
            invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 36
            return
        end local 2 // org.bson.codecs.Codec codec
        end local 1 // java.lang.Class clazz
        end local 0 // org.bson.codecs.configuration.CodecCache this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lorg/bson/codecs/configuration/CodecCache;
            0    2     1  clazz  Ljava/lang/Class<*>;
            0    2     2  codec  Lorg/bson/codecs/Codec<*>;
    Signature: (Ljava/lang/Class<*>;Lorg/bson/codecs/Codec<*>;)V
    MethodParameters:
       Name  Flags
      clazz  final
      codec  final

  public <T> org.bson.codecs.Codec<T> getOrThrow(java.lang.Class<T>);
    descriptor: (Ljava/lang/Class;)Lorg/bson/codecs/Codec;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=7, locals=3, args_size=2
        start local 0 // org.bson.codecs.configuration.CodecCache this
        start local 1 // java.lang.Class clazz
         0: .line 40
            aload 0 /* this */
            getfield org.bson.codecs.configuration.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* clazz */
            invokeinterface java.util.concurrent.ConcurrentMap.containsKey:(Ljava/lang/Object;)Z
            ifeq 4
         1: .line 41
            aload 0 /* this */
            getfield org.bson.codecs.configuration.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* clazz */
            invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.bson.codecs.configuration.Optional
            astore 2 /* optionalCodec */
        start local 2 // org.bson.codecs.configuration.Optional optionalCodec
         2: .line 42
            aload 2 /* optionalCodec */
            invokevirtual org.bson.codecs.configuration.Optional.isEmpty:()Z
            ifne 4
         3: .line 43
            aload 2 /* optionalCodec */
            invokevirtual org.bson.codecs.configuration.Optional.get:()Ljava/lang/Object;
            checkcast org.bson.codecs.Codec
            areturn
        end local 2 // org.bson.codecs.configuration.Optional optionalCodec
         4: .line 46
      StackMap locals:
      StackMap stack:
            new org.bson.codecs.configuration.CodecConfigurationException
            dup
            ldc "Can't find a codec for %s."
            iconst_1
            anewarray java.lang.Object
            dup
            iconst_0
            aload 1 /* clazz */
            aastore
            invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
            invokespecial org.bson.codecs.configuration.CodecConfigurationException.<init>:(Ljava/lang/String;)V
            athrow
        end local 1 // java.lang.Class clazz
        end local 0 // org.bson.codecs.configuration.CodecCache this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0    5     0           this  Lorg/bson/codecs/configuration/CodecCache;
            0    5     1          clazz  Ljava/lang/Class<TT;>;
            2    4     2  optionalCodec  Lorg/bson/codecs/configuration/Optional<+Lorg/bson/codecs/Codec<*>;>;
    Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)Lorg/bson/codecs/Codec<TT;>;
    MethodParameters:
       Name  Flags
      clazz  final
}
SourceFile: "CodecCache.java"