class com.sun.jndi.dns.DNSDatagramSocketFactory
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: com.sun.jndi.dns.DNSDatagramSocketFactory
  super_class: java.lang.Object
{
  static final int DEVIATION;
    descriptor: I
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    ConstantValue: 3

  static final int THRESHOLD;
    descriptor: I
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    ConstantValue: 6

  static final int BIT_DEVIATION;
    descriptor: I
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    ConstantValue: 2

  static final int HISTORY;
    descriptor: I
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    ConstantValue: 32

  static final int MAX_RANDOM_TRIES;
    descriptor: I
    flags: (0x0018) ACC_STATIC, ACC_FINAL
    ConstantValue: 5

  int lastport;
    descriptor: I
    flags: (0x0000) 

  int suitablePortCount;
    descriptor: I
    flags: (0x0000) 

  int unsuitablePortCount;
    descriptor: I
    flags: (0x0000) 

  final int thresholdCount;
    descriptor: I
    flags: (0x0010) ACC_FINAL

  final int deviation;
    descriptor: I
    flags: (0x0010) ACC_FINAL

  final java.util.Random random;
    descriptor: Ljava/util/Random;
    flags: (0x0010) ACC_FINAL

  final com.sun.jndi.dns.DNSDatagramSocketFactory$PortHistory history;
    descriptor: Lcom/sun/jndi/dns/DNSDatagramSocketFactory$PortHistory;
    flags: (0x0010) ACC_FINAL

  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 32
            ldc Lcom/sun/jndi/dns/DNSDatagramSocketFactory;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic com.sun.jndi.dns.DNSDatagramSocketFactory.$assertionsDisabled:Z
         3: .line 37
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>();
    descriptor: ()V
    flags: (0x0000) 
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
         0: .line 98
            aload 0 /* this */
            new java.util.Random
            dup
            invokespecial java.util.Random.<init>:()V
            invokespecial com.sun.jndi.dns.DNSDatagramSocketFactory.<init>:(Ljava/util/Random;)V
         1: .line 99
            return
        end local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/sun/jndi/dns/DNSDatagramSocketFactory;

  void <init>(java.util.Random);
    descriptor: (Ljava/util/Random;)V
    flags: (0x0000) 
    Code:
      stack=4, locals=2, args_size=2
        start local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
        start local 1 // java.util.Random random
         0: .line 102
            aload 0 /* this */
            aload 1 /* random */
            iconst_3
            bipush 6
            invokespecial com.sun.jndi.dns.DNSDatagramSocketFactory.<init>:(Ljava/util/Random;II)V
         1: .line 103
            return
        end local 1 // java.util.Random random
        end local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Lcom/sun/jndi/dns/DNSDatagramSocketFactory;
            0    2     1  random  Ljava/util/Random;
    MethodParameters:
        Name  Flags
      random  

  void <init>(java.util.Random, int, int);
    descriptor: (Ljava/util/Random;II)V
    flags: (0x0000) 
    Code:
      stack=5, locals=4, args_size=4
        start local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
        start local 1 // java.util.Random random
        start local 2 // int deviation
        start local 3 // int threshold
         0: .line 104
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 89
            aload 0 /* this */
            iconst_0
            putfield com.sun.jndi.dns.DNSDatagramSocketFactory.lastport:I
         2: .line 107
            aload 1 /* random */
            ifnonnull 4
         3: .line 108
            new java.lang.NullPointerException
            dup
            invokespecial java.lang.NullPointerException.<init>:()V
            athrow
         4: .line 111
      StackMap locals: com.sun.jndi.dns.DNSDatagramSocketFactory java.util.Random int int
      StackMap stack:
            aload 0 /* this */
            aload 1 /* random */
            putfield com.sun.jndi.dns.DNSDatagramSocketFactory.random:Ljava/util/Random;
         5: .line 112
            aload 0 /* this */
            new com.sun.jndi.dns.DNSDatagramSocketFactory$PortHistory
            dup
            bipush 32
            aload 1 /* random */
            invokespecial com.sun.jndi.dns.DNSDatagramSocketFactory$PortHistory.<init>:(ILjava/util/Random;)V
            putfield com.sun.jndi.dns.DNSDatagramSocketFactory.history:Lcom/sun/jndi/dns/DNSDatagramSocketFactory$PortHistory;
         6: .line 113
            aload 0 /* this */
            iconst_1
            iload 2 /* deviation */
            invokestatic java.lang.Math.max:(II)I
            putfield com.sun.jndi.dns.DNSDatagramSocketFactory.deviation:I
         7: .line 114
            aload 0 /* this */
            iconst_2
            iload 3 /* threshold */
            invokestatic java.lang.Math.max:(II)I
            putfield com.sun.jndi.dns.DNSDatagramSocketFactory.thresholdCount:I
         8: .line 115
            return
        end local 3 // int threshold
        end local 2 // int deviation
        end local 1 // java.util.Random random
        end local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    9     0       this  Lcom/sun/jndi/dns/DNSDatagramSocketFactory;
            0    9     1     random  Ljava/util/Random;
            0    9     2  deviation  I
            0    9     3  threshold  I
    MethodParameters:
           Name  Flags
      random     
      deviation  
      threshold  

  public synchronized java.net.DatagramSocket open();
    descriptor: ()Ljava/net/DatagramSocket;
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=3, locals=8, args_size=1
        start local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
         0: .line 128
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.lastport:I
            istore 1 /* lastseen */
        start local 1 // int lastseen
         1: .line 131
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.unsuitablePortCount:I
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.thresholdCount:I
            if_icmple 2
            iconst_1
            goto 3
      StackMap locals: int
      StackMap stack:
         2: iconst_0
      StackMap locals:
      StackMap stack: int
         3: istore 3 /* thresholdCrossed */
        start local 3 // boolean thresholdCrossed
         4: .line 132
            iload 3 /* thresholdCrossed */
            ifeq 8
         5: .line 135
            aload 0 /* this */
            invokevirtual com.sun.jndi.dns.DNSDatagramSocketFactory.openRandom:()Ljava/net/DatagramSocket;
            astore 2 /* s */
        start local 2 // java.net.DatagramSocket s
         6: .line 136
            aload 2 /* s */
            ifnull 7
            aload 2 /* s */
            areturn
         7: .line 140
      StackMap locals: java.net.DatagramSocket int
      StackMap stack:
            aload 0 /* this */
            iconst_0
            putfield com.sun.jndi.dns.DNSDatagramSocketFactory.unsuitablePortCount:I
            aload 0 /* this */
            iconst_0
            putfield com.sun.jndi.dns.DNSDatagramSocketFactory.suitablePortCount:I
            iconst_0
            istore 1 /* lastseen */
        end local 2 // java.net.DatagramSocket s
         8: .line 144
      StackMap locals: com.sun.jndi.dns.DNSDatagramSocketFactory int top int
      StackMap stack:
            aload 0 /* this */
            invokevirtual com.sun.jndi.dns.DNSDatagramSocketFactory.openDefault:()Ljava/net/DatagramSocket;
            astore 2 /* s */
        start local 2 // java.net.DatagramSocket s
         9: .line 145
            aload 0 /* this */
            aload 2 /* s */
            invokevirtual java.net.DatagramSocket.getLocalPort:()I
            putfield com.sun.jndi.dns.DNSDatagramSocketFactory.lastport:I
        10: .line 146
            iload 1 /* lastseen */
            ifne 13
        11: .line 147
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.history:Lcom/sun/jndi/dns/DNSDatagramSocketFactory$PortHistory;
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.lastport:I
            invokevirtual com.sun.jndi.dns.DNSDatagramSocketFactory$PortHistory.offer:(I)Z
            pop
        12: .line 148
            aload 2 /* s */
            areturn
        13: .line 151
      StackMap locals: com.sun.jndi.dns.DNSDatagramSocketFactory int java.net.DatagramSocket int
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.suitablePortCount:I
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.thresholdCount:I
            if_icmple 14
            iconst_1
            goto 15
      StackMap locals:
      StackMap stack:
        14: iconst_0
      StackMap locals:
      StackMap stack: int
        15: istore 3 /* thresholdCrossed */
        16: .line 152
            iload 1 /* lastseen */
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.lastport:I
            ixor
            invokestatic java.lang.Integer.bitCount:(I)I
            iconst_2
            if_icmple 19
        17: .line 153
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.lastport:I
            iload 1 /* lastseen */
            isub
            invokestatic java.lang.Math.abs:(I)I
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.deviation:I
        18: .line 152
            if_icmple 19
            iconst_1
            goto 20
      StackMap locals:
      StackMap stack:
        19: iconst_0
      StackMap locals:
      StackMap stack: int
        20: istore 4 /* farEnough */
        start local 4 // boolean farEnough
        21: .line 154
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.history:Lcom/sun/jndi/dns/DNSDatagramSocketFactory$PortHistory;
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.lastport:I
            invokevirtual com.sun.jndi.dns.DNSDatagramSocketFactory$PortHistory.contains:(I)Z
            istore 5 /* recycled */
        start local 5 // boolean recycled
        22: .line 155
            iload 3 /* thresholdCrossed */
            ifne 24
            iload 4 /* farEnough */
            ifeq 23
            iload 5 /* recycled */
            ifeq 24
      StackMap locals: int int
      StackMap stack:
        23: iconst_0
            goto 25
      StackMap locals:
      StackMap stack:
        24: iconst_1
      StackMap locals:
      StackMap stack: int
        25: istore 6 /* suitable */
        start local 6 // boolean suitable
        26: .line 156
            iload 6 /* suitable */
            ifeq 27
            iload 5 /* recycled */
            ifne 27
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.history:Lcom/sun/jndi/dns/DNSDatagramSocketFactory$PortHistory;
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.lastport:I
            invokevirtual com.sun.jndi.dns.DNSDatagramSocketFactory$PortHistory.add:(I)Z
            pop
        27: .line 158
      StackMap locals: int
      StackMap stack:
            iload 6 /* suitable */
            ifeq 35
        28: .line 159
            iload 3 /* thresholdCrossed */
            ifne 31
        29: .line 160
            aload 0 /* this */
            dup
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.suitablePortCount:I
            iconst_1
            iadd
            putfield com.sun.jndi.dns.DNSDatagramSocketFactory.suitablePortCount:I
        30: .line 161
            goto 34
      StackMap locals:
      StackMap stack:
        31: iload 4 /* farEnough */
            ifeq 32
            iload 5 /* recycled */
            ifeq 34
        32: .line 162
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iconst_1
            putfield com.sun.jndi.dns.DNSDatagramSocketFactory.unsuitablePortCount:I
        33: .line 163
            aload 0 /* this */
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.thresholdCount:I
            iconst_2
            idiv
            putfield com.sun.jndi.dns.DNSDatagramSocketFactory.suitablePortCount:I
        34: .line 168
      StackMap locals:
      StackMap stack:
            aload 2 /* s */
            areturn
        35: .line 173
      StackMap locals:
      StackMap stack:
            getstatic com.sun.jndi.dns.DNSDatagramSocketFactory.$assertionsDisabled:Z
            ifne 36
            iload 3 /* thresholdCrossed */
            ifeq 36
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
        36: .line 174
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual com.sun.jndi.dns.DNSDatagramSocketFactory.openRandom:()Ljava/net/DatagramSocket;
            astore 7 /* ss */
        start local 7 // java.net.DatagramSocket ss
        37: .line 175
            aload 7 /* ss */
            ifnonnull 38
            aload 2 /* s */
            areturn
        38: .line 176
      StackMap locals: java.net.DatagramSocket
      StackMap stack:
            aload 0 /* this */
            dup
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.unsuitablePortCount:I
            iconst_1
            iadd
            putfield com.sun.jndi.dns.DNSDatagramSocketFactory.unsuitablePortCount:I
        39: .line 177
            aload 2 /* s */
            invokevirtual java.net.DatagramSocket.close:()V
        40: .line 178
            aload 7 /* ss */
            areturn
        end local 7 // java.net.DatagramSocket ss
        end local 6 // boolean suitable
        end local 5 // boolean recycled
        end local 4 // boolean farEnough
        end local 3 // boolean thresholdCrossed
        end local 2 // java.net.DatagramSocket s
        end local 1 // int lastseen
        end local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
      LocalVariableTable:
        Start  End  Slot              Name  Signature
            0   41     0              this  Lcom/sun/jndi/dns/DNSDatagramSocketFactory;
            1   41     1          lastseen  I
            6    8     2                 s  Ljava/net/DatagramSocket;
            9   41     2                 s  Ljava/net/DatagramSocket;
            4   41     3  thresholdCrossed  Z
           21   41     4         farEnough  Z
           22   41     5          recycled  Z
           26   41     6          suitable  Z
           37   41     7                ss  Ljava/net/DatagramSocket;
    Exceptions:
      throws java.net.SocketException

  private java.net.DatagramSocket openDefault();
    descriptor: ()Ljava/net/DatagramSocket;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
         0: .line 182
            new java.net.DatagramSocket
            dup
            invokespecial java.net.DatagramSocket.<init>:()V
            areturn
        end local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lcom/sun/jndi/dns/DNSDatagramSocketFactory;
    Exceptions:
      throws java.net.SocketException

  synchronized boolean isUsingNativePortRandomization();
    descriptor: ()Z
    flags: (0x0020) ACC_SYNCHRONIZED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
         0: .line 186
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.unsuitablePortCount:I
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.thresholdCount:I
            if_icmpgt 3
         1: .line 187
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.suitablePortCount:I
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.thresholdCount:I
         2: .line 186
            if_icmple 3
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         3: iconst_0
            ireturn
        end local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lcom/sun/jndi/dns/DNSDatagramSocketFactory;

  synchronized boolean isUsingJavaPortRandomization();
    descriptor: ()Z
    flags: (0x0020) ACC_SYNCHRONIZED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
         0: .line 191
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.unsuitablePortCount:I
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.thresholdCount:I
            if_icmple 1
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         1: iconst_0
            ireturn
        end local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lcom/sun/jndi/dns/DNSDatagramSocketFactory;

  synchronized boolean isUndecided();
    descriptor: ()Z
    flags: (0x0020) ACC_SYNCHRONIZED
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
         0: .line 195
            aload 0 /* this */
            invokevirtual com.sun.jndi.dns.DNSDatagramSocketFactory.isUsingJavaPortRandomization:()Z
            ifne 3
         1: .line 196
            aload 0 /* this */
            invokevirtual com.sun.jndi.dns.DNSDatagramSocketFactory.isUsingNativePortRandomization:()Z
            ifne 3
         2: .line 195
            iconst_1
            ireturn
      StackMap locals:
      StackMap stack:
         3: iconst_0
            ireturn
        end local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    4     0  this  Lcom/sun/jndi/dns/DNSDatagramSocketFactory;

  private java.net.DatagramSocket openRandom();
    descriptor: ()Ljava/net/DatagramSocket;
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=3, locals=3, args_size=1
        start local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
         0: .line 200
            iconst_5
            istore 1 /* maxtries */
        start local 1 // int maxtries
         1: .line 201
            goto 8
         2: .line 202
      StackMap locals: int
      StackMap stack:
            getstatic com.sun.jndi.dns.DNSDatagramSocketFactory$EphemeralPortRange.LOWER:I
         3: .line 203
            aload 0 /* this */
            getfield com.sun.jndi.dns.DNSDatagramSocketFactory.random:Ljava/util/Random;
            getstatic com.sun.jndi.dns.DNSDatagramSocketFactory$EphemeralPortRange.RANGE:I
            invokevirtual java.util.Random.nextInt:(I)I
         4: .line 202
            iadd
            istore 2 /* port */
        start local 2 // int port
         5: .line 205
            new java.net.DatagramSocket
            dup
            iload 2 /* port */
            invokespecial java.net.DatagramSocket.<init>:(I)V
         6: areturn
         7: .line 206
      StackMap locals: com.sun.jndi.dns.DNSDatagramSocketFactory int int
      StackMap stack: java.io.IOException
            pop
        end local 2 // int port
         8: .line 201
      StackMap locals:
      StackMap stack:
            iload 1 /* maxtries */
            iinc 1 /* maxtries */ -1
            ifgt 2
         9: .line 210
            aconst_null
            areturn
        end local 1 // int maxtries
        end local 0 // com.sun.jndi.dns.DNSDatagramSocketFactory this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   10     0      this  Lcom/sun/jndi/dns/DNSDatagramSocketFactory;
            1   10     1  maxtries  I
            5    8     2      port  I
      Exception table:
        from    to  target  type
           5     6       7  Class java.io.IOException
}
SourceFile: "DNSDatagramSocketFactory.java"
NestMembers:
  com.sun.jndi.dns.DNSDatagramSocketFactory$EphemeralPortRange  com.sun.jndi.dns.DNSDatagramSocketFactory$PortHistory
InnerClasses:
  final EphemeralPortRange = com.sun.jndi.dns.DNSDatagramSocketFactory$EphemeralPortRange of com.sun.jndi.dns.DNSDatagramSocketFactory
  final PortHistory = com.sun.jndi.dns.DNSDatagramSocketFactory$PortHistory of com.sun.jndi.dns.DNSDatagramSocketFactory