public class org.springframework.boot.devtools.filewatch.FileSystemWatcher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.boot.devtools.filewatch.FileSystemWatcher
super_class: java.lang.Object
{
private static final java.time.Duration DEFAULT_POLL_INTERVAL;
descriptor: Ljava/time/Duration;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.time.Duration DEFAULT_QUIET_PERIOD;
descriptor: Ljava/time/Duration;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.List<org.springframework.boot.devtools.filewatch.FileChangeListener> listeners;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lorg/springframework/boot/devtools/filewatch/FileChangeListener;>;
private final boolean daemon;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long pollInterval;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long quietPeriod;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.springframework.boot.devtools.filewatch.SnapshotStateRepository snapshotStateRepository;
descriptor: Lorg/springframework/boot/devtools/filewatch/SnapshotStateRepository;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger remainingScans;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.io.File, org.springframework.boot.devtools.filewatch.DirectorySnapshot> directories;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
private java.lang.Thread watchThread;
descriptor: Ljava/lang/Thread;
flags: (0x0002) ACC_PRIVATE
private java.io.FileFilter triggerFilter;
descriptor: Ljava/io/FileFilter;
flags: (0x0002) ACC_PRIVATE
private final java.lang.Object monitor;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc 1000
invokestatic java.time.Duration.ofMillis:(J)Ljava/time/Duration;
putstatic org.springframework.boot.devtools.filewatch.FileSystemWatcher.DEFAULT_POLL_INTERVAL:Ljava/time/Duration;
1: ldc 400
invokestatic java.time.Duration.ofMillis:(J)Ljava/time/Duration;
putstatic org.springframework.boot.devtools.filewatch.FileSystemWatcher.DEFAULT_QUIET_PERIOD:Ljava/time/Duration;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
getstatic org.springframework.boot.devtools.filewatch.FileSystemWatcher.DEFAULT_POLL_INTERVAL:Ljava/time/Duration;
getstatic org.springframework.boot.devtools.filewatch.FileSystemWatcher.DEFAULT_QUIET_PERIOD:Ljava/time/Duration;
invokespecial org.springframework.boot.devtools.filewatch.FileSystemWatcher.<init>:(ZLjava/time/Duration;Ljava/time/Duration;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;
public void <init>(boolean, java.time.Duration, java.time.Duration);
descriptor: (ZLjava/time/Duration;Ljava/time/Duration;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 1
aload 2
aload 3
aconst_null
invokespecial org.springframework.boot.devtools.filewatch.FileSystemWatcher.<init>:(ZLjava/time/Duration;Ljava/time/Duration;Lorg/springframework/boot/devtools/filewatch/SnapshotStateRepository;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;
0 2 1 daemon Z
0 2 2 pollInterval Ljava/time/Duration;
0 2 3 quietPeriod Ljava/time/Duration;
MethodParameters:
Name Flags
daemon
pollInterval
quietPeriod
public void <init>(boolean, java.time.Duration, java.time.Duration, org.springframework.boot.devtools.filewatch.SnapshotStateRepository);
descriptor: (ZLjava/time/Duration;Ljava/time/Duration;Lorg/springframework/boot/devtools/filewatch/SnapshotStateRepository;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.listeners:Ljava/util/List;
2: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_m1
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.remainingScans:Ljava/util/concurrent/atomic/AtomicInteger;
3: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.directories:Ljava/util/Map;
4: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.monitor:Ljava/lang/Object;
5: aload 2
ldc "PollInterval must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
6: aload 3
ldc "QuietPeriod must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
7: aload 2
invokevirtual java.time.Duration.toMillis:()J
lconst_0
lcmp
ifle 8
iconst_1
goto 9
StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher int java.time.Duration java.time.Duration org.springframework.boot.devtools.filewatch.SnapshotStateRepository
StackMap stack:
8: iconst_0
StackMap locals:
StackMap stack: int
9: ldc "PollInterval must be positive"
invokestatic org.springframework.util.Assert.isTrue:(ZLjava/lang/String;)V
10: aload 3
invokevirtual java.time.Duration.toMillis:()J
lconst_0
lcmp
ifle 11
iconst_1
goto 12
StackMap locals:
StackMap stack:
11: iconst_0
StackMap locals:
StackMap stack: int
12: ldc "QuietPeriod must be positive"
invokestatic org.springframework.util.Assert.isTrue:(ZLjava/lang/String;)V
13: aload 2
invokevirtual java.time.Duration.toMillis:()J
aload 3
invokevirtual java.time.Duration.toMillis:()J
lcmp
ifle 14
iconst_1
goto 15
StackMap locals:
StackMap stack:
14: iconst_0
15: StackMap locals:
StackMap stack: int
ldc "PollInterval must be greater than QuietPeriod"
16: invokestatic org.springframework.util.Assert.isTrue:(ZLjava/lang/String;)V
17: aload 0
iload 1
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.daemon:Z
18: aload 0
aload 2
invokevirtual java.time.Duration.toMillis:()J
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.pollInterval:J
19: aload 0
aload 3
invokevirtual java.time.Duration.toMillis:()J
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.quietPeriod:J
20: aload 0
aload 4
ifnull 21
aload 4
goto 22
21: StackMap locals:
StackMap stack: org.springframework.boot.devtools.filewatch.FileSystemWatcher
getstatic org.springframework.boot.devtools.filewatch.SnapshotStateRepository.NONE:Lorg/springframework/boot/devtools/filewatch/SnapshotStateRepository;
22: StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher int java.time.Duration java.time.Duration org.springframework.boot.devtools.filewatch.SnapshotStateRepository
StackMap stack: org.springframework.boot.devtools.filewatch.FileSystemWatcher org.springframework.boot.devtools.filewatch.SnapshotStateRepository
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.snapshotStateRepository:Lorg/springframework/boot/devtools/filewatch/SnapshotStateRepository;
23: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;
0 24 1 daemon Z
0 24 2 pollInterval Ljava/time/Duration;
0 24 3 quietPeriod Ljava/time/Duration;
0 24 4 snapshotStateRepository Lorg/springframework/boot/devtools/filewatch/SnapshotStateRepository;
MethodParameters:
Name Flags
daemon
pollInterval
quietPeriod
snapshotStateRepository
public void addListener(org.springframework.boot.devtools.filewatch.FileChangeListener);
descriptor: (Lorg/springframework/boot/devtools/filewatch/FileChangeListener;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "FileChangeListener must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.monitor:Ljava/lang/Object;
dup
astore 2
monitorenter
2: aload 0
invokevirtual org.springframework.boot.devtools.filewatch.FileSystemWatcher.checkNotStarted:()V
3: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.listeners:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: aload 2
monitorexit
5: goto 8
StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher org.springframework.boot.devtools.filewatch.FileChangeListener java.lang.Object
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;
0 9 1 fileChangeListener Lorg/springframework/boot/devtools/filewatch/FileChangeListener;
Exception table:
from to target type
2 5 6 any
6 7 6 any
MethodParameters:
Name Flags
fileChangeListener
public void addSourceDirectories(java.lang.Iterable<java.io.File>);
descriptor: (Ljava/lang/Iterable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "Directories must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.monitor:Ljava/lang/Object;
dup
astore 2
monitorenter
2: aload 1
aload 0
invokedynamic accept(Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
org/springframework/boot/devtools/filewatch/FileSystemWatcher.addSourceDirectory(Ljava/io/File;)V (5)
(Ljava/io/File;)V
invokeinterface java.lang.Iterable.forEach:(Ljava/util/function/Consumer;)V
3: aload 2
monitorexit
4: goto 7
StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher java.lang.Iterable java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;
0 8 1 directories Ljava/lang/Iterable<Ljava/io/File;>;
Exception table:
from to target type
2 4 5 any
5 6 5 any
Signature: (Ljava/lang/Iterable<Ljava/io/File;>;)V
MethodParameters:
Name Flags
directories
public void addSourceDirectory(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "Directory must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 1
invokevirtual java.io.File.isFile:()Z
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: aload 1
invokedynamic get(Ljava/io/File;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/springframework/boot/devtools/filewatch/FileSystemWatcher.lambda$1(Ljava/io/File;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokestatic org.springframework.util.Assert.isTrue:(ZLjava/util/function/Supplier;)V
4: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.monitor:Ljava/lang/Object;
dup
astore 2
monitorenter
5: aload 0
invokevirtual org.springframework.boot.devtools.filewatch.FileSystemWatcher.checkNotStarted:()V
6: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.directories:Ljava/util/Map;
aload 1
aconst_null
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 2
monitorexit
8: goto 11
StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher java.io.File java.lang.Object
StackMap stack: java.lang.Throwable
9: aload 2
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;
0 12 1 directory Ljava/io/File;
Exception table:
from to target type
5 8 9 any
9 10 9 any
MethodParameters:
Name Flags
directory
public void setTriggerFilter(java.io.FileFilter);
descriptor: (Ljava/io/FileFilter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.monitor:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
aload 1
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.triggerFilter:Ljava/io/FileFilter;
2: aload 2
monitorexit
3: goto 6
StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher java.io.FileFilter java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 2
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;
0 7 1 triggerFilter Ljava/io/FileFilter;
Exception table:
from to target type
1 3 4 any
4 5 4 any
MethodParameters:
Name Flags
triggerFilter
private void checkNotStarted();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.monitor:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.watchThread:Ljava/lang/Thread;
ifnonnull 2
iconst_1
goto 3
StackMap locals: java.lang.Object
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: ldc "FileSystemWatcher already started"
invokestatic org.springframework.util.Assert.state:(ZLjava/lang/String;)V
4: aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;
Exception table:
from to target type
1 5 6 any
6 7 6 any
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=4, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.monitor:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
invokevirtual org.springframework.boot.devtools.filewatch.FileSystemWatcher.createOrRestoreInitialSnapshots:()V
2: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.watchThread:Ljava/lang/Thread;
ifnonnull 11
3: new java.util.HashMap
dup
aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.directories:Ljava/util/Map;
invokespecial java.util.HashMap.<init>:(Ljava/util/Map;)V
astore 2
start local 2 4: new org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher
dup
aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.remainingScans:Ljava/util/concurrent/atomic/AtomicInteger;
new java.util.ArrayList
dup
aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.listeners:Ljava/util/List;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.triggerFilter:Ljava/io/FileFilter;
5: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.pollInterval:J
aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.quietPeriod:J
aload 2
aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.snapshotStateRepository:Lorg/springframework/boot/devtools/filewatch/SnapshotStateRepository;
6: invokespecial org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.<init>:(Ljava/util/concurrent/atomic/AtomicInteger;Ljava/util/List;Ljava/io/FileFilter;JJLjava/util/Map;Lorg/springframework/boot/devtools/filewatch/SnapshotStateRepository;)V
astore 3
start local 3 7: aload 0
new java.lang.Thread
dup
aload 3
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.watchThread:Ljava/lang/Thread;
8: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.watchThread:Ljava/lang/Thread;
ldc "File Watcher"
invokevirtual java.lang.Thread.setName:(Ljava/lang/String;)V
9: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.watchThread:Ljava/lang/Thread;
aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.daemon:Z
invokevirtual java.lang.Thread.setDaemon:(Z)V
10: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.watchThread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.start:()V
end local 3 end local 2 11: StackMap locals: java.lang.Object
StackMap stack:
aload 1
monitorexit
12: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
13: aload 1
monitorexit
14: athrow
15: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;
4 11 2 localDirectories Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
7 11 3 watcher Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher$Watcher;
Exception table:
from to target type
1 12 13 any
13 14 13 any
private void createOrRestoreInitialSnapshots();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.snapshotStateRepository:Lorg/springframework/boot/devtools/filewatch/SnapshotStateRepository;
invokeinterface org.springframework.boot.devtools.filewatch.SnapshotStateRepository.restore:()Ljava/lang/Object;
checkcast java.util.Map
astore 1
start local 1 1: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.directories:Ljava/util/Map;
aload 1
invokedynamic apply(Ljava/util/Map;)Ljava/util/function/BiFunction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
org/springframework/boot/devtools/filewatch/FileSystemWatcher.lambda$2(Ljava/util/Map;Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;)Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot; (6)
(Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;)Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;
invokeinterface java.util.Map.replaceAll:(Ljava/util/function/BiFunction;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;
1 3 1 restored Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokevirtual org.springframework.boot.devtools.filewatch.FileSystemWatcher.stopAfter:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;
void stopAfter(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.monitor:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.watchThread:Ljava/lang/Thread;
astore 2
start local 2 2: aload 2
ifnull 6
3: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.remainingScans:Ljava/util/concurrent/atomic/AtomicInteger;
iload 1
invokevirtual java.util.concurrent.atomic.AtomicInteger.set:(I)V
4: iload 1
ifgt 6
5: aload 2
invokevirtual java.lang.Thread.interrupt:()V
6: StackMap locals: java.lang.Thread java.lang.Object
StackMap stack:
aload 0
aconst_null
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher.watchThread:Ljava/lang/Thread;
7: aload 3
monitorexit
8: goto 11
end local 2 StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher int top java.lang.Object
StackMap stack: java.lang.Throwable
9: aload 3
monitorexit
10: athrow
start local 2 11: StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher int java.lang.Thread
StackMap stack:
aload 2
ifnull 16
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
aload 2
if_acmpeq 16
12: aload 2
invokevirtual java.lang.Thread.join:()V
13: goto 16
14: StackMap locals:
StackMap stack: java.lang.InterruptedException
pop
15: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
16: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher;
0 17 1 remainingScans I
2 9 2 thread Ljava/lang/Thread;
11 17 2 thread Ljava/lang/Thread;
Exception table:
from to target type
1 8 9 any
9 10 9 any
12 13 14 Class java.lang.InterruptedException
MethodParameters:
Name Flags
remainingScans
private static java.lang.String lambda$1(java.io.File);
descriptor: (Ljava/io/File;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "Directory '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "' must not be a file"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static org.springframework.boot.devtools.filewatch.DirectorySnapshot lambda$2(java.util.Map, java.io.File, org.springframework.boot.devtools.filewatch.DirectorySnapshot);
descriptor: (Ljava/util/Map;Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;)Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=3
start local 1 start local 2 0: aload 0
ifnull 1
aload 0
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.springframework.boot.devtools.filewatch.DirectorySnapshot
goto 2
StackMap locals:
StackMap stack:
1: aconst_null
StackMap locals:
StackMap stack: org.springframework.boot.devtools.filewatch.DirectorySnapshot
2: astore 3
start local 3 3: aload 3
ifnull 4
aload 3
goto 5
StackMap locals: org.springframework.boot.devtools.filewatch.DirectorySnapshot
StackMap stack:
4: new org.springframework.boot.devtools.filewatch.DirectorySnapshot
dup
aload 1
invokespecial org.springframework.boot.devtools.filewatch.DirectorySnapshot.<init>:(Ljava/io/File;)V
StackMap locals:
StackMap stack: org.springframework.boot.devtools.filewatch.DirectorySnapshot
5: areturn
end local 3 end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 6 1 f Ljava/io/File;
0 6 2 v Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;
3 6 3 restoredSnapshot Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;
}
SourceFile: "FileSystemWatcher.java"
NestMembers:
org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private final Watcher = org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher of org.springframework.boot.devtools.filewatch.FileSystemWatcher