Adopt compile-time Lombok for shared and host boilerplate
This commit is contained in:
+3
-4
@@ -6,6 +6,8 @@ import java.net.URI;
|
||||
import java.nio.file.*;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.*;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
/**
|
||||
* Standalone draft store with shared per-file history; all IO/history operations are serialized off
|
||||
@@ -115,14 +117,11 @@ public final class FileDocuments implements HostServices.Documents, AutoCloseabl
|
||||
s.file.toUri(), s.revision, s.text, Files.isWritable(s.file), !s.text.equals(s.saved));
|
||||
}
|
||||
|
||||
@RequiredArgsConstructor(access = AccessLevel.PACKAGE)
|
||||
private final class Handle implements DocumentSession {
|
||||
private final State s;
|
||||
private volatile boolean closed;
|
||||
|
||||
Handle(State s) {
|
||||
this.s = s;
|
||||
}
|
||||
|
||||
private <T> CompletionStage<T> run(Callable<T> action) {
|
||||
return submit(
|
||||
() -> {
|
||||
|
||||
Reference in New Issue
Block a user