final class org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher
super_class: java.lang.Object
{
private final java.util.concurrent.atomic.AtomicInteger remainingScans;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x0012) ACC_PRIVATE, 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 java.io.FileFilter triggerFilter;
descriptor: Ljava/io/FileFilter;
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 java.util.Map<java.io.File, org.springframework.boot.devtools.filewatch.DirectorySnapshot> directories;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
private void <init>(java.util.concurrent.atomic.AtomicInteger, java.util.List<org.springframework.boot.devtools.filewatch.FileChangeListener>, java.io.FileFilter, long, long, java.util.Map<java.io.File, org.springframework.boot.devtools.filewatch.DirectorySnapshot>);
descriptor: (Ljava/util/concurrent/atomic/AtomicInteger;Ljava/util/List;Ljava/io/FileFilter;JJLjava/util/Map;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=9, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 6 start local 8 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.remainingScans:Ljava/util/concurrent/atomic/AtomicInteger;
2: aload 0
aload 2
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.listeners:Ljava/util/List;
3: aload 0
aload 3
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.triggerFilter:Ljava/io/FileFilter;
4: aload 0
lload 4
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.pollInterval:J
5: aload 0
lload 6
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.quietPeriod:J
6: aload 0
aload 8
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.directories:Ljava/util/Map;
7: return
end local 8 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher$Watcher;
0 8 1 remainingScans Ljava/util/concurrent/atomic/AtomicInteger;
0 8 2 listeners Ljava/util/List<Lorg/springframework/boot/devtools/filewatch/FileChangeListener;>;
0 8 3 triggerFilter Ljava/io/FileFilter;
0 8 4 pollInterval J
0 8 6 quietPeriod J
0 8 8 directories Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
Signature: (Ljava/util/concurrent/atomic/AtomicInteger;Ljava/util/List<Lorg/springframework/boot/devtools/filewatch/FileChangeListener;>;Ljava/io/FileFilter;JJLjava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;)V
MethodParameters:
Name Flags
remainingScans
listeners
triggerFilter
pollInterval
quietPeriod
directories
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.remainingScans:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 1
start local 1 1: goto 9
2: StackMap locals: int
StackMap stack:
iload 1
ifle 4
3: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.remainingScans:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.decrementAndGet:()I
pop
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.scan:()V
5: goto 8
6: StackMap locals:
StackMap stack: java.lang.InterruptedException
pop
7: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
8: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.remainingScans:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
istore 1
9: StackMap locals:
StackMap stack:
iload 1
ifgt 2
iload 1
iconst_m1
if_icmpeq 2
10: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher$Watcher;
1 11 1 remainingScans I
Exception table:
from to target type
2 5 6 Class java.lang.InterruptedException
private void scan();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.pollInterval:J
aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.quietPeriod:J
lsub
invokestatic java.lang.Thread.sleep:(J)V
1: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.directories:Ljava/util/Map;
astore 2
start local 2 2: StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher top java.util.Map
StackMap stack:
aload 2
astore 1
start local 1 3: aload 0
invokevirtual org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.getCurrentSnapshots:()Ljava/util/Map;
astore 2
4: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.quietPeriod:J
invokestatic java.lang.Thread.sleep:(J)V
5: aload 0
aload 1
aload 2
invokevirtual org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.isDifferent:(Ljava/util/Map;Ljava/util/Map;)Z
ifne 2
6: aload 0
aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.directories:Ljava/util/Map;
aload 2
invokevirtual org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.isDifferent:(Ljava/util/Map;Ljava/util/Map;)Z
ifeq 8
7: aload 0
aload 2
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokevirtual org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.updateSnapshots:(Ljava/util/Collection;)V
8: StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher java.util.Map java.util.Map
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher$Watcher;
3 9 1 previous Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
2 9 2 current Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
Exceptions:
throws java.lang.InterruptedException
private boolean isDifferent(java.util.Map<java.io.File, org.springframework.boot.devtools.filewatch.DirectorySnapshot>, java.util.Map<java.io.File, org.springframework.boot.devtools.filewatch.DirectorySnapshot>);
descriptor: (Ljava/util/Map;Ljava/util/Map;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
aload 2
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.equals:(Ljava/lang/Object;)Z
ifne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher java.util.Map java.util.Map top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 4: aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.springframework.boot.devtools.filewatch.DirectorySnapshot
astore 5
start local 5 5: aload 2
aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.springframework.boot.devtools.filewatch.DirectorySnapshot
astore 6
start local 6 6: aload 5
aload 6
aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.triggerFilter:Ljava/io/FileFilter;
invokevirtual org.springframework.boot.devtools.filewatch.DirectorySnapshot.equals:(Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;Ljava/io/FileFilter;)Z
ifne 8
7: iconst_1
ireturn
end local 6 end local 5 end local 3 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
9: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher$Watcher;
0 10 1 previous Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
0 10 2 current Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
4 8 3 entry Ljava/util/Map$Entry<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
5 8 5 previousDirectory Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;
6 8 6 currentDirectory Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;
Signature: (Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;)Z
MethodParameters:
Name Flags
previous
current
private java.util.Map<java.io.File, org.springframework.boot.devtools.filewatch.DirectorySnapshot> getCurrentSnapshots();
descriptor: ()Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=1
start local 0 0: new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.directories:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher java.util.Map top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.io.File
astore 2
start local 2 3: aload 1
aload 2
new org.springframework.boot.devtools.filewatch.DirectorySnapshot
dup
aload 2
invokespecial org.springframework.boot.devtools.filewatch.DirectorySnapshot.<init>:(Ljava/io/File;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher$Watcher;
1 6 1 snapshots Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
3 4 2 directory Ljava/io/File;
Signature: ()Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
private void updateSnapshots(java.util.Collection<org.springframework.boot.devtools.filewatch.DirectorySnapshot>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
astore 2
start local 2 1: new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
astore 3
start local 3 2: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 9
StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher java.util.Collection java.util.Map java.util.Set top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.boot.devtools.filewatch.DirectorySnapshot
astore 4
start local 4 4: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.directories:Ljava/util/Map;
aload 4
invokevirtual org.springframework.boot.devtools.filewatch.DirectorySnapshot.getDirectory:()Ljava/io/File;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.springframework.boot.devtools.filewatch.DirectorySnapshot
astore 6
start local 6 5: aload 2
aload 4
invokevirtual org.springframework.boot.devtools.filewatch.DirectorySnapshot.getDirectory:()Ljava/io/File;
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 6
aload 4
aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.triggerFilter:Ljava/io/FileFilter;
invokevirtual org.springframework.boot.devtools.filewatch.DirectorySnapshot.getChangedFiles:(Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;Ljava/io/FileFilter;)Lorg/springframework/boot/devtools/filewatch/ChangedFiles;
astore 7
start local 7 7: aload 7
invokevirtual org.springframework.boot.devtools.filewatch.ChangedFiles.getFiles:()Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifne 9
8: aload 3
aload 7
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 6 end local 4 9: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
10: aload 3
invokeinterface java.util.Set.isEmpty:()Z
ifne 12
11: aload 0
aload 3
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
invokevirtual org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.fireListeners:(Ljava/util/Set;)V
12: StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher java.util.Collection java.util.Map java.util.Set
StackMap stack:
aload 0
aload 2
putfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.directories:Ljava/util/Map;
13: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher$Watcher;
0 14 1 snapshots Ljava/util/Collection<Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
1 14 2 updated Ljava/util/Map<Ljava/io/File;Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;
2 14 3 changeSet Ljava/util/Set<Lorg/springframework/boot/devtools/filewatch/ChangedFiles;>;
4 9 4 snapshot Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;
5 9 6 previous Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;
7 9 7 changedFiles Lorg/springframework/boot/devtools/filewatch/ChangedFiles;
Signature: (Ljava/util/Collection<Lorg/springframework/boot/devtools/filewatch/DirectorySnapshot;>;)V
MethodParameters:
Name Flags
snapshots
private void fireListeners(java.util.Set<org.springframework.boot.devtools.filewatch.ChangedFiles>);
descriptor: (Ljava/util/Set;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher.listeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher java.util.Set top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.springframework.boot.devtools.filewatch.FileChangeListener
astore 2
start local 2 2: aload 2
aload 1
invokeinterface org.springframework.boot.devtools.filewatch.FileChangeListener.onChange:(Ljava/util/Set;)V
end local 2 3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/boot/devtools/filewatch/FileSystemWatcher$Watcher;
0 5 1 changeSet Ljava/util/Set<Lorg/springframework/boot/devtools/filewatch/ChangedFiles;>;
2 3 2 listener Lorg/springframework/boot/devtools/filewatch/FileChangeListener;
Signature: (Ljava/util/Set<Lorg/springframework/boot/devtools/filewatch/ChangedFiles;>;)V
MethodParameters:
Name Flags
changeSet
}
SourceFile: "FileSystemWatcher.java"
NestHost: org.springframework.boot.devtools.filewatch.FileSystemWatcher
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
private final Watcher = org.springframework.boot.devtools.filewatch.FileSystemWatcher$Watcher of org.springframework.boot.devtools.filewatch.FileSystemWatcher