class org.springframework.util.SocketUtils$SocketType$1 extends org.springframework.util.SocketUtils$SocketType
minor version: 0
major version: 59
flags: flags: (0x4020) ACC_SUPER, ACC_ANNOTATION
this_class: org.springframework.util.SocketUtils$SocketType$1
super_class: org.springframework.util.SocketUtils$SocketType
{
void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 0: aload 0
aload 1
iload 2
invokespecial org.springframework.util.SocketUtils$SocketType.<init>:(Ljava/lang/String;I)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/util/SocketUtils$SocketType$1;
MethodParameters:
Name Flags
$enum$name
$enum$ordinal
protected boolean isPortAvailable(int);
descriptor: (I)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: invokestatic javax.net.ServerSocketFactory.getDefault:()Ljavax/net/ServerSocketFactory;
1: iload 1
iconst_1
ldc "localhost"
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
2: invokevirtual javax.net.ServerSocketFactory.createServerSocket:(IILjava/net/InetAddress;)Ljava/net/ServerSocket;
astore 2
start local 2 3: aload 2
invokevirtual java.net.ServerSocket.close:()V
4: iconst_1
ireturn
end local 2 5: StackMap locals:
StackMap stack: java.lang.Exception
pop
6: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/util/SocketUtils$SocketType$1;
0 7 1 port I
3 5 2 serverSocket Ljava/net/ServerSocket;
Exception table:
from to target type
0 4 5 Class java.lang.Exception
MethodParameters:
Name Flags
port
}
SourceFile: "SocketUtils.java"
EnclosingMethod: org.springframework.util.SocketUtils$SocketType
NestHost: org.springframework.util.SocketUtils
InnerClasses:
private abstract SocketType = org.springframework.util.SocketUtils$SocketType of org.springframework.util.SocketUtils
org.springframework.util.SocketUtils$SocketType$1