final class jdk.management.jfr.MBeanUtils
  minor version: 0
  major version: 59
  flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
  this_class: jdk.management.jfr.MBeanUtils
  super_class: java.lang.Object
{
  private static final java.security.Permission monitor;
    descriptor: Ljava/security/Permission;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  private static final java.security.Permission control;
    descriptor: Ljava/security/Permission;
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=0, args_size=0
         0: .line 46
            new java.lang.management.ManagementPermission
            dup
            ldc "monitor"
            invokespecial java.lang.management.ManagementPermission.<init>:(Ljava/lang/String;)V
            putstatic jdk.management.jfr.MBeanUtils.monitor:Ljava/security/Permission;
         1: .line 47
            new java.lang.management.ManagementPermission
            dup
            ldc "control"
            invokespecial java.lang.management.ManagementPermission.<init>:(Ljava/lang/String;)V
            putstatic jdk.management.jfr.MBeanUtils.control:Ljava/security/Permission;
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.management.jfr.MBeanUtils this
         0: .line 44
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
            return
        end local 0 // jdk.management.jfr.MBeanUtils this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/management/jfr/MBeanUtils;

  static javax.management.ObjectName createObjectName();
    descriptor: ()Ljavax/management/ObjectName;
    flags: (0x0008) ACC_STATIC
    Code:
      stack=4, locals=1, args_size=0
         0: .line 51
            new javax.management.ObjectName
            dup
            ldc "jdk.management.jfr:type=FlightRecorder"
            invokespecial javax.management.ObjectName.<init>:(Ljava/lang/String;)V
         1: areturn
         2: .line 52
      StackMap locals:
      StackMap stack: javax.management.MalformedObjectNameException
            astore 0 /* mne */
        start local 0 // javax.management.MalformedObjectNameException mne
         3: .line 53
            new java.lang.Error
            dup
            ldc "Can't happen"
            aload 0 /* mne */
            invokespecial java.lang.Error.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
            athrow
        end local 0 // javax.management.MalformedObjectNameException mne
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            3    4     0   mne  Ljavax/management/MalformedObjectNameException;
      Exception table:
        from    to  target  type
           0     1       2  Class javax.management.MalformedObjectNameException

  static void checkControl();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=1, args_size=0
         0: .line 58
            invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
            astore 0 /* secManager */
        start local 0 // java.lang.SecurityManager secManager
         1: .line 59
            aload 0 /* secManager */
            ifnull 3
         2: .line 60
            aload 0 /* secManager */
            getstatic jdk.management.jfr.MBeanUtils.control:Ljava/security/Permission;
            invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
         3: .line 62
      StackMap locals: java.lang.SecurityManager
      StackMap stack:
            return
        end local 0 // java.lang.SecurityManager secManager
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            1    4     0  secManager  Ljava/lang/SecurityManager;

  static void checkMonitor();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=1, args_size=0
         0: .line 65
            invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
            astore 0 /* secManager */
        start local 0 // java.lang.SecurityManager secManager
         1: .line 66
            aload 0 /* secManager */
            ifnull 3
         2: .line 67
            aload 0 /* secManager */
            getstatic jdk.management.jfr.MBeanUtils.monitor:Ljava/security/Permission;
            invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
         3: .line 69
      StackMap locals: java.lang.SecurityManager
      StackMap stack:
            return
        end local 0 // java.lang.SecurityManager secManager
      LocalVariableTable:
        Start  End  Slot        Name  Signature
            1    4     0  secManager  Ljava/lang/SecurityManager;

  static <T, R> java.util.List<R> transformList(java.util.List<T>, java.util.function.Function<T, R>);
    descriptor: (Ljava/util/List;Ljava/util/function/Function;)Ljava/util/List;
    flags: (0x0008) ACC_STATIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // java.util.List source
        start local 1 // java.util.function.Function function
         0: .line 72
            aload 0 /* source */
            invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
            aload 1 /* function */
            invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
            invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
            invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
            checkcast java.util.List
            areturn
        end local 1 // java.util.function.Function function
        end local 0 // java.util.List source
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    1     0    source  Ljava/util/List<TT;>;
            0    1     1  function  Ljava/util/function/Function<TT;TR;>;
    Signature: <T:Ljava/lang/Object;R:Ljava/lang/Object;>(Ljava/util/List<TT;>;Ljava/util/function/Function<TT;TR;>;)Ljava/util/List<TR;>;
    MethodParameters:
          Name  Flags
      source    
      function  

  static boolean booleanValue(java.lang.String);
    descriptor: (Ljava/lang/String;)Z
    flags: (0x0008) ACC_STATIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // java.lang.String s
         0: .line 76
            ldc "true"
            aload 0 /* s */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 2
         1: .line 77
            iconst_1
            ireturn
         2: .line 79
      StackMap locals:
      StackMap stack:
            ldc "false"
            aload 0 /* s */
            invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
            ifeq 4
         3: .line 80
            iconst_0
            ireturn
         4: .line 82
      StackMap locals:
      StackMap stack:
            new java.lang.IllegalArgumentException
            dup
            ldc "Value must be true or false."
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        end local 0 // java.lang.String s
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0     s  Ljava/lang/String;
    MethodParameters:
      Name  Flags
      s     

  static java.time.Duration duration(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/time/Duration;
    flags: (0x0008) ACC_STATIC
    Code:
      stack=4, locals=3, args_size=1
        start local 0 // java.lang.String s
         0: .line 86
            aload 0 /* s */
            ifnonnull 2
         1: .line 87
            aconst_null
            areturn
         2: .line 89
      StackMap locals:
      StackMap stack:
            aload 0 /* s */
            invokestatic jdk.jfr.internal.management.ManagementSupport.parseTimespan:(Ljava/lang/String;)J
            lstore 1 /* l */
        start local 1 // long l
         3: .line 90
            lload 1 /* l */
            lconst_0
            lcmp
            ifne 5
         4: .line 91
            aconst_null
            areturn
         5: .line 93
      StackMap locals: long
      StackMap stack:
            lload 1 /* l */
            invokestatic java.time.Duration.ofNanos:(J)Ljava/time/Duration;
            areturn
        end local 1 // long l
        end local 0 // java.lang.String s
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0     s  Ljava/lang/String;
            3    6     1     l  J
    Exceptions:
      throws java.lang.NumberFormatException
    MethodParameters:
      Name  Flags
      s     

  public static java.time.Instant parseTimestamp(java.lang.String, java.time.Instant);
    descriptor: (Ljava/lang/String;Ljava/time/Instant;)Ljava/time/Instant;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=2, args_size=2
        start local 0 // java.lang.String s
        start local 1 // java.time.Instant defaultValue
         0: .line 97
            aload 0 /* s */
            ifnonnull 2
         1: .line 98
            aload 1 /* defaultValue */
            areturn
         2: .line 101
      StackMap locals:
      StackMap stack:
            aload 0 /* s */
            invokestatic java.time.Instant.parse:(Ljava/lang/CharSequence;)Ljava/time/Instant;
         3: areturn
         4: .line 102
      StackMap locals:
      StackMap stack: java.time.format.DateTimeParseException
            pop
         5: .line 107
            aload 0 /* s */
            invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
            invokestatic java.time.Instant.ofEpochMilli:(J)Ljava/time/Instant;
         6: areturn
         7: .line 108
      StackMap locals:
      StackMap stack: java.lang.RuntimeException
            pop
         8: .line 109
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Not a valid timestamp "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 0 /* s */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
        end local 1 // java.time.Instant defaultValue
        end local 0 // java.lang.String s
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    9     0             s  Ljava/lang/String;
            0    9     1  defaultValue  Ljava/time/Instant;
      Exception table:
        from    to  target  type
           2     3       4  Class java.time.format.DateTimeParseException
           5     6       7  Class java.lang.NumberFormatException
           5     6       7  Class java.time.DateTimeException
    MethodParameters:
              Name  Flags
      s             
      defaultValue  

  static java.lang.Long size(java.lang.String);
    descriptor: (Ljava/lang/String;)Ljava/lang/Long;
    flags: (0x0008) ACC_STATIC
    Code:
      stack=4, locals=3, args_size=1
        start local 0 // java.lang.String s
         0: .line 114
            aload 0 /* s */
            invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
            lstore 1 /* size */
        start local 1 // long size
         1: .line 115
            lload 1 /* size */
            lconst_0
            lcmp
            ifge 3
         2: .line 116
            new java.lang.IllegalArgumentException
            dup
            ldc "Negative size not allowed"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         3: .line 118
      StackMap locals: long
      StackMap stack:
            lload 1 /* size */
            invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
            areturn
        end local 1 // long size
        end local 0 // java.lang.String s
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0     s  Ljava/lang/String;
            1    4     1  size  J
    Exceptions:
      throws java.lang.NumberFormatException
    MethodParameters:
      Name  Flags
      s     

  public static int parseBlockSize(java.lang.String, int);
    descriptor: (Ljava/lang/String;I)I
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=3, args_size=2
        start local 0 // java.lang.String string
        start local 1 // int defaultSize
         0: .line 122
            aload 0 /* string */
            ifnonnull 2
         1: .line 123
            iload 1 /* defaultSize */
            ireturn
         2: .line 125
      StackMap locals:
      StackMap stack:
            aload 0 /* string */
            invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
            istore 2 /* size */
        start local 2 // int size
         3: .line 126
            iload 2 /* size */
            iconst_1
            if_icmpge 5
         4: .line 127
            new java.lang.IllegalArgumentException
            dup
            ldc "Block size must be at least 1 byte"
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            athrow
         5: .line 129
      StackMap locals: int
      StackMap stack:
            iload 2 /* size */
            ireturn
        end local 2 // int size
        end local 1 // int defaultSize
        end local 0 // java.lang.String string
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    6     0       string  Ljava/lang/String;
            0    6     1  defaultSize  I
            3    6     2         size  I
    MethodParameters:
             Name  Flags
      string       
      defaultSize  

  public static java.lang.String destination(jdk.jfr.Recording, java.lang.String);
    descriptor: (Ljdk/jfr/Recording;Ljava/lang/String;)Ljava/lang/String;
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=5, locals=4, args_size=2
        start local 0 // jdk.jfr.Recording recording
        start local 1 // java.lang.String destination
         0: .line 134
            aload 0 /* recording */
            aload 1 /* destination */
            invokestatic jdk.jfr.internal.management.ManagementSupport.checkSetDestination:(Ljdk/jfr/Recording;Ljava/lang/String;)V
         1: .line 135
            aload 1 /* destination */
         2: areturn
         3: .line 136
      StackMap locals:
      StackMap stack: java.io.IOException
            astore 2 /* e */
        start local 2 // java.io.IOException e
         4: .line 137
            new java.lang.IllegalArgumentException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Not a valid destination "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
            aload 1 /* destination */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
            astore 3 /* iae */
        start local 3 // java.lang.IllegalArgumentException iae
         5: .line 138
            aload 3 /* iae */
            aload 2 /* e */
            invokevirtual java.lang.IllegalArgumentException.addSuppressed:(Ljava/lang/Throwable;)V
         6: .line 139
            aload 3 /* iae */
            athrow
        end local 3 // java.lang.IllegalArgumentException iae
        end local 2 // java.io.IOException e
        end local 1 // java.lang.String destination
        end local 0 // jdk.jfr.Recording recording
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0    7     0    recording  Ljdk/jfr/Recording;
            0    7     1  destination  Ljava/lang/String;
            4    7     2            e  Ljava/io/IOException;
            5    7     3          iae  Ljava/lang/IllegalArgumentException;
      Exception table:
        from    to  target  type
           0     2       3  Class java.io.IOException
    Exceptions:
      throws java.lang.IllegalArgumentException
    MethodParameters:
             Name  Flags
      recording    
      destination  
}
SourceFile: "MBeanUtils.java"