public final class com.mongodb.internal.connection.ClientMetadataHelper
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.mongodb.internal.connection.ClientMetadataHelper
super_class: java.lang.Object
{
public static final org.bson.BsonDocument CLIENT_METADATA_DOCUMENT;
descriptor: Lorg/bson/BsonDocument;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final java.lang.String SEPARATOR;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "|"
private static final java.lang.String APPLICATION_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "application"
private static final java.lang.String APPLICATION_NAME_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "name"
private static final java.lang.String DRIVER_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "driver"
private static final java.lang.String DRIVER_NAME_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "name"
private static final java.lang.String DRIVER_VERSION_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "version"
private static final java.lang.String PLATFORM_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "platform"
private static final java.lang.String OS_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "os"
private static final java.lang.String OS_TYPE_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "type"
private static final java.lang.String OS_NAME_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "name"
private static final java.lang.String OS_ARCHITECTURE_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "architecture"
private static final java.lang.String OS_VERSION_FIELD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "version"
private static final int MAXIMUM_CLIENT_METADATA_ENCODED_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 512
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=2, args_size=0
0: new org.bson.BsonDocument
dup
invokespecial org.bson.BsonDocument.<init>:()V
putstatic com.mongodb.internal.connection.ClientMetadataHelper.CLIENT_METADATA_DOCUMENT:Lorg/bson/BsonDocument;
1: aconst_null
new org.bson.BsonDocument
dup
invokespecial org.bson.BsonDocument.<init>:()V
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.addDriverInformation:(Lcom/mongodb/MongoDriverInformation;Lorg/bson/BsonDocument;)Lorg/bson/BsonDocument;
astore 0
start local 0 2: getstatic com.mongodb.internal.connection.ClientMetadataHelper.CLIENT_METADATA_DOCUMENT:Lorg/bson/BsonDocument;
ldc "driver"
aload 0
ldc "driver"
invokevirtual org.bson.BsonDocument.get:(Ljava/lang/Object;)Lorg/bson/BsonValue;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
3: ldc "os.name"
ldc "unknown"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 4: getstatic com.mongodb.internal.connection.ClientMetadataHelper.CLIENT_METADATA_DOCUMENT:Lorg/bson/BsonDocument;
ldc "os"
new org.bson.BsonDocument
dup
invokespecial org.bson.BsonDocument.<init>:()V
5: ldc "type"
6: new org.bson.BsonString
dup
aload 1
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.getOperatingSystemType:(Ljava/lang/String;)Ljava/lang/String;
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
7: invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
8: ldc "name"
9: new org.bson.BsonString
dup
aload 1
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
10: invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
11: ldc "architecture"
12: new org.bson.BsonString
dup
ldc "os.arch"
ldc "unknown"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
13: invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
14: ldc "version"
15: new org.bson.BsonString
dup
ldc "os.version"
ldc "unknown"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
16: invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
17: invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
18: ldc "platform"
aload 0
ldc "platform"
new org.bson.BsonString
dup
ldc ""
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokevirtual org.bson.BsonDocument.get:(Ljava/lang/Object;Lorg/bson/BsonValue;)Lorg/bson/BsonValue;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
end local 1 19: goto 21
StackMap locals: org.bson.BsonDocument
StackMap stack: java.lang.SecurityException
20: pop
end local 0 21: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
2 21 0 driverMetadataDocument Lorg/bson/BsonDocument;
4 19 1 operatingSystemName Ljava/lang/String;
Exception table:
from to target type
3 19 20 Class java.lang.SecurityException
private static java.lang.String getOperatingSystemType(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "linux"
aastore
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.nameMatches:(Ljava/lang/String;[Ljava/lang/String;)Z
ifeq 2
1: ldc "Linux"
areturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "mac"
aastore
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.nameMatches:(Ljava/lang/String;[Ljava/lang/String;)Z
ifeq 4
3: ldc "Darwin"
areturn
4: StackMap locals:
StackMap stack:
aload 0
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "windows"
aastore
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.nameMatches:(Ljava/lang/String;[Ljava/lang/String;)Z
ifeq 6
5: ldc "Windows"
areturn
6: StackMap locals:
StackMap stack:
aload 0
iconst_5
anewarray java.lang.String
dup
iconst_0
ldc "hp-ux"
aastore
dup
iconst_1
ldc "aix"
aastore
dup
iconst_2
ldc "irix"
aastore
dup
iconst_3
ldc "solaris"
aastore
dup
iconst_4
ldc "sunos"
aastore
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.nameMatches:(Ljava/lang/String;[Ljava/lang/String;)Z
ifeq 8
7: ldc "Unix"
areturn
8: StackMap locals:
StackMap stack:
ldc "unknown"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 operatingSystemName Ljava/lang/String;
MethodParameters:
Name Flags
operatingSystemName final
private static boolean nameMatches(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)Z
flags: (0x008a) ACC_PRIVATE, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: java.lang.String java.lang.String[] top int int java.lang.String[]
StackMap stack:
1: aload 5
iload 3
aaload
astore 2
start local 2 2: aload 0
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
aload 2
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: iconst_1
ireturn
end local 2 4: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 1
6: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 name Ljava/lang/String;
0 7 1 prefixes [Ljava/lang/String;
2 4 2 prefix Ljava/lang/String;
MethodParameters:
Name Flags
name final
prefixes final
static org.bson.BsonDocument createClientMetadataDocument(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/bson/BsonDocument;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.createClientMetadataDocument:(Ljava/lang/String;Lcom/mongodb/MongoDriverInformation;)Lorg/bson/BsonDocument;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 applicationName Ljava/lang/String;
MethodParameters:
Name Flags
applicationName final
public static org.bson.BsonDocument createClientMetadataDocument(java.lang.String, com.mongodb.MongoDriverInformation);
descriptor: (Ljava/lang/String;Lcom/mongodb/MongoDriverInformation;)Lorg/bson/BsonDocument;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic com.mongodb.internal.connection.ClientMetadataHelper.CLIENT_METADATA_DOCUMENT:Lorg/bson/BsonDocument;
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.createClientMetadataDocument:(Ljava/lang/String;Lcom/mongodb/MongoDriverInformation;Lorg/bson/BsonDocument;)Lorg/bson/BsonDocument;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 applicationName Ljava/lang/String;
0 1 1 mongoDriverInformation Lcom/mongodb/MongoDriverInformation;
MethodParameters:
Name Flags
applicationName final
mongoDriverInformation final
static org.bson.BsonDocument createClientMetadataDocument(java.lang.String, com.mongodb.MongoDriverInformation, org.bson.BsonDocument);
descriptor: (Ljava/lang/String;Lcom/mongodb/MongoDriverInformation;Lorg/bson/BsonDocument;)Lorg/bson/BsonDocument;
flags: (0x0008) ACC_STATIC
Code:
stack=8, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ifnull 5
1: ldc "applicationName UTF-8 encoding length <= 128"
2: aload 0
ldc "UTF-8"
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
arraylength
sipush 128
if_icmpgt 3
iconst_1
goto 4
StackMap locals:
StackMap stack: java.lang.String
3: iconst_0
4: StackMap locals: java.lang.String com.mongodb.MongoDriverInformation org.bson.BsonDocument
StackMap stack: java.lang.String int
invokestatic com.mongodb.assertions.Assertions.isTrueArgument:(Ljava/lang/String;Z)V
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual org.bson.BsonDocument.clone:()Lorg/bson/BsonDocument;
astore 3
start local 3 6: aload 0
ifnull 8
7: aload 3
ldc "application"
new org.bson.BsonDocument
dup
ldc "name"
new org.bson.BsonString
dup
aload 0
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
8: StackMap locals: org.bson.BsonDocument
StackMap stack:
aload 1
ifnull 10
9: aload 1
aload 3
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.addDriverInformation:(Lcom/mongodb/MongoDriverInformation;Lorg/bson/BsonDocument;)Lorg/bson/BsonDocument;
pop
10: StackMap locals:
StackMap stack:
aload 3
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.clientMetadataDocumentTooLarge:(Lorg/bson/BsonDocument;)Z
ifeq 23
11: aload 3
ldc "os"
aconst_null
invokevirtual org.bson.BsonDocument.getDocument:(Ljava/lang/Object;Lorg/bson/BsonDocument;)Lorg/bson/BsonDocument;
astore 4
start local 4 12: aload 4
ifnull 16
13: aload 4
ldc "version"
invokevirtual org.bson.BsonDocument.remove:(Ljava/lang/Object;)Lorg/bson/BsonValue;
pop
14: aload 4
ldc "architecture"
invokevirtual org.bson.BsonDocument.remove:(Ljava/lang/Object;)Lorg/bson/BsonValue;
pop
15: aload 4
ldc "name"
invokevirtual org.bson.BsonDocument.remove:(Ljava/lang/Object;)Lorg/bson/BsonValue;
pop
16: StackMap locals: org.bson.BsonDocument
StackMap stack:
aload 4
ifnull 17
aload 3
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.clientMetadataDocumentTooLarge:(Lorg/bson/BsonDocument;)Z
ifeq 23
17: StackMap locals:
StackMap stack:
aload 3
ldc "platform"
invokevirtual org.bson.BsonDocument.remove:(Ljava/lang/Object;)Lorg/bson/BsonValue;
pop
18: aload 3
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.clientMetadataDocumentTooLarge:(Lorg/bson/BsonDocument;)Z
ifeq 23
19: new org.bson.BsonDocument
dup
ldc "driver"
aload 2
ldc "driver"
invokevirtual org.bson.BsonDocument.getDocument:(Ljava/lang/Object;)Lorg/bson/BsonDocument;
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
astore 3
20: aload 3
ldc "os"
new org.bson.BsonDocument
dup
ldc "type"
new org.bson.BsonString
dup
ldc "unknown"
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
21: aload 3
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.clientMetadataDocumentTooLarge:(Lorg/bson/BsonDocument;)Z
ifeq 23
22: aconst_null
astore 3
end local 4 23: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 applicationName Ljava/lang/String;
0 24 1 mongoDriverInformation Lcom/mongodb/MongoDriverInformation;
0 24 2 templateDocument Lorg/bson/BsonDocument;
6 24 3 document Lorg/bson/BsonDocument;
12 23 4 operatingSystemDocument Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
applicationName final
mongoDriverInformation final
templateDocument final
private static org.bson.BsonDocument addDriverInformation(com.mongodb.MongoDriverInformation, org.bson.BsonDocument);
descriptor: (Lcom/mongodb/MongoDriverInformation;Lorg/bson/BsonDocument;)Lorg/bson/BsonDocument;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.getDriverInformation:(Lcom/mongodb/MongoDriverInformation;)Lcom/mongodb/MongoDriverInformation;
astore 2
start local 2 1: new org.bson.BsonDocument
dup
ldc "name"
aload 2
invokevirtual com.mongodb.MongoDriverInformation.getDriverNames:()Ljava/util/List;
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.listToBsonString:(Ljava/util/List;)Lorg/bson/BsonString;
invokespecial org.bson.BsonDocument.<init>:(Ljava/lang/String;Lorg/bson/BsonValue;)V
2: ldc "version"
aload 2
invokevirtual com.mongodb.MongoDriverInformation.getDriverVersions:()Ljava/util/List;
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.listToBsonString:(Ljava/util/List;)Lorg/bson/BsonString;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
3: astore 3
start local 3 4: aload 1
ldc "driver"
aload 3
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
5: aload 1
ldc "platform"
aload 2
invokevirtual com.mongodb.MongoDriverInformation.getDriverPlatforms:()Ljava/util/List;
invokestatic com.mongodb.internal.connection.ClientMetadataHelper.listToBsonString:(Ljava/util/List;)Lorg/bson/BsonString;
invokevirtual org.bson.BsonDocument.append:(Ljava/lang/String;Lorg/bson/BsonValue;)Lorg/bson/BsonDocument;
pop
6: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 mongoDriverInformation Lcom/mongodb/MongoDriverInformation;
0 7 1 document Lorg/bson/BsonDocument;
1 7 2 driverInformation Lcom/mongodb/MongoDriverInformation;
4 7 3 driverMetadataDocument Lorg/bson/BsonDocument;
MethodParameters:
Name Flags
mongoDriverInformation final
document final
static boolean clientMetadataDocumentTooLarge(org.bson.BsonDocument);
descriptor: (Lorg/bson/BsonDocument;)Z
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: new org.bson.io.BasicOutputBuffer
dup
sipush 512
invokespecial org.bson.io.BasicOutputBuffer.<init>:(I)V
astore 1
start local 1 1: new org.bson.codecs.BsonDocumentCodec
dup
invokespecial org.bson.codecs.BsonDocumentCodec.<init>:()V
new org.bson.BsonBinaryWriter
dup
aload 1
invokespecial org.bson.BsonBinaryWriter.<init>:(Lorg/bson/io/BsonOutput;)V
aload 0
invokestatic org.bson.codecs.EncoderContext.builder:()Lorg/bson/codecs/EncoderContext$Builder;
invokevirtual org.bson.codecs.EncoderContext$Builder.build:()Lorg/bson/codecs/EncoderContext;
invokevirtual org.bson.codecs.BsonDocumentCodec.encode:(Lorg/bson/BsonWriter;Lorg/bson/BsonDocument;Lorg/bson/codecs/EncoderContext;)V
2: aload 1
invokevirtual org.bson.io.BasicOutputBuffer.getPosition:()I
sipush 512
if_icmple 3
iconst_1
ireturn
StackMap locals: org.bson.io.BasicOutputBuffer
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 document Lorg/bson/BsonDocument;
1 4 1 buffer Lorg/bson/io/BasicOutputBuffer;
MethodParameters:
Name Flags
document final
static com.mongodb.MongoDriverInformation getDriverInformation(com.mongodb.MongoDriverInformation);
descriptor: (Lcom/mongodb/MongoDriverInformation;)Lcom/mongodb/MongoDriverInformation;
flags: (0x0008) ACC_STATIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokestatic com.mongodb.MongoDriverInformation.builder:(Lcom/mongodb/MongoDriverInformation;)Lcom/mongodb/MongoDriverInformation$Builder;
goto 2
1: StackMap locals:
StackMap stack:
invokestatic com.mongodb.MongoDriverInformation.builder:()Lcom/mongodb/MongoDriverInformation$Builder;
2: StackMap locals:
StackMap stack: com.mongodb.MongoDriverInformation$Builder
astore 1
start local 1 3: aload 1
4: ldc "mongo-java-driver"
invokevirtual com.mongodb.MongoDriverInformation$Builder.driverName:(Ljava/lang/String;)Lcom/mongodb/MongoDriverInformation$Builder;
5: ldc "3.12.7"
invokevirtual com.mongodb.MongoDriverInformation$Builder.driverVersion:(Ljava/lang/String;)Lcom/mongodb/MongoDriverInformation$Builder;
6: ldc "Java/%s/%s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
ldc "java.vendor"
ldc "unknown-vendor"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
aastore
dup
iconst_1
7: ldc "java.runtime.version"
ldc "unknown-version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
aastore
8: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual com.mongodb.MongoDriverInformation$Builder.driverPlatform:(Ljava/lang/String;)Lcom/mongodb/MongoDriverInformation$Builder;
9: invokevirtual com.mongodb.MongoDriverInformation$Builder.build:()Lcom/mongodb/MongoDriverInformation;
10: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 mongoDriverInformation Lcom/mongodb/MongoDriverInformation;
3 11 1 builder Lcom/mongodb/MongoDriverInformation$Builder;
MethodParameters:
Name Flags
mongoDriverInformation final
static org.bson.BsonString listToBsonString(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)Lorg/bson/BsonString;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: aload 0
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: java.util.List java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 4: iload 2
ifle 6
5: aload 1
ldc "|"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: StackMap locals: java.util.List java.lang.StringBuilder int java.lang.String java.util.Iterator
StackMap stack:
aload 1
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: iinc 2 1
end local 3 8: StackMap locals: java.util.List java.lang.StringBuilder int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
9: new org.bson.BsonString
dup
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.bson.BsonString.<init>:(Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 listOfStrings Ljava/util/List<Ljava/lang/String;>;
1 10 1 stringBuilder Ljava/lang/StringBuilder;
2 10 2 i I
4 8 3 val Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/lang/String;>;)Lorg/bson/BsonString;
MethodParameters:
Name Flags
listOfStrings final
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/mongodb/internal/connection/ClientMetadataHelper;
}
SourceFile: "ClientMetadataHelper.java"
InnerClasses:
public final Builder = com.mongodb.MongoDriverInformation$Builder of com.mongodb.MongoDriverInformation
public final Builder = org.bson.codecs.EncoderContext$Builder of org.bson.codecs.EncoderContext