final class org.bson.internal.CodecCache
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: org.bson.internal.CodecCache
  super_class: java.lang.Object
{
  private final java.util.concurrent.ConcurrentMap<java.lang.Class<?>, org.bson.internal.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/internal/Optional<+Lorg/bson/codecs/Codec<*>;>;>;

  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // org.bson.internal.CodecCache this
         0: .line 27
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 28
            aload 0 /* this */
         2: .line 29
            new java.util.concurrent.ConcurrentHashMap
            dup
            invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
            putfield org.bson.internal.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
         3: .line 27
            return
        end local 0 // org.bson.internal.CodecCache this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lorg/bson/internal/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.internal.CodecCache this
        start local 1 // java.lang.Class clazz
         0: .line 32
            aload 0 /* this */
            getfield org.bson.internal.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.internal.CodecCache this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    1     0   this  Lorg/bson/internal/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.internal.CodecCache this
        start local 1 // java.lang.Class clazz
        start local 2 // org.bson.codecs.Codec codec
         0: .line 36
            aload 0 /* this */
            getfield org.bson.internal.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* clazz */
            aload 2 /* codec */
            invokestatic org.bson.internal.Optional.of:(Ljava/lang/Object;)Lorg/bson/internal/Optional;
            invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         1: .line 37
            return
        end local 2 // org.bson.codecs.Codec codec
        end local 1 // java.lang.Class clazz
        end local 0 // org.bson.internal.CodecCache this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    2     0   this  Lorg/bson/internal/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 synchronized <T> org.bson.codecs.Codec<T> putIfMissing(java.lang.Class<T>, org.bson.codecs.Codec<T>);
    descriptor: (Ljava/lang/Class;Lorg/bson/codecs/Codec;)Lorg/bson/codecs/Codec;
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // org.bson.internal.CodecCache this
        start local 1 // java.lang.Class clazz
        start local 2 // org.bson.codecs.Codec codec
         0: .line 41
            aload 0 /* this */
            getfield org.bson.internal.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* clazz */
            invokeinterface java.util.concurrent.ConcurrentMap.containsKey:(Ljava/lang/Object;)Z
            ifeq 2
         1: .line 42
            aload 0 /* this */
            getfield org.bson.internal.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* clazz */
            invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.bson.internal.Optional
            invokevirtual org.bson.internal.Optional.get:()Ljava/lang/Object;
            checkcast org.bson.codecs.Codec
            areturn
         2: .line 44
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.bson.internal.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* clazz */
            aload 2 /* codec */
            invokestatic org.bson.internal.Optional.of:(Ljava/lang/Object;)Lorg/bson/internal/Optional;
            invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         3: .line 45
            aload 2 /* codec */
            areturn
        end local 2 // org.bson.codecs.Codec codec
        end local 1 // java.lang.Class clazz
        end local 0 // org.bson.internal.CodecCache this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    4     0   this  Lorg/bson/internal/CodecCache;
            0    4     1  clazz  Ljava/lang/Class<TT;>;
            0    4     2  codec  Lorg/bson/codecs/Codec<TT;>;
    Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;Lorg/bson/codecs/Codec<TT;>;)Lorg/bson/codecs/Codec<TT;>;
    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.internal.CodecCache this
        start local 1 // java.lang.Class clazz
         0: .line 51
            aload 0 /* this */
            getfield org.bson.internal.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* clazz */
            invokeinterface java.util.concurrent.ConcurrentMap.containsKey:(Ljava/lang/Object;)Z
            ifeq 4
         1: .line 52
            aload 0 /* this */
            getfield org.bson.internal.CodecCache.codecCache:Ljava/util/concurrent/ConcurrentMap;
            aload 1 /* clazz */
            invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast org.bson.internal.Optional
            astore 2 /* optionalCodec */
        start local 2 // org.bson.internal.Optional optionalCodec
         2: .line 53
            aload 2 /* optionalCodec */
            invokevirtual org.bson.internal.Optional.isEmpty:()Z
            ifne 4
         3: .line 54
            aload 2 /* optionalCodec */
            invokevirtual org.bson.internal.Optional.get:()Ljava/lang/Object;
            checkcast org.bson.codecs.Codec
            areturn
        end local 2 // org.bson.internal.Optional optionalCodec
         4: .line 57
      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.internal.CodecCache this
      LocalVariableTable:
        Start  End  Slot           Name  Signature
            0    5     0           this  Lorg/bson/internal/CodecCache;
            0    5     1          clazz  Ljava/lang/Class<TT;>;
            2    4     2  optionalCodec  Lorg/bson/internal/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"